home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 November / Freeware November 1998.img / dist / fw_gnuplot.idb / usr / freeware / doc / gnuplot / gnuplot.doc.z / gnuplot.doc
Text File  |  1998-05-21  |  232KB  |  5,780 lines

  1. C RCS $Id: gnuplot.doc,v 1.61 1997/11/25 23:03:25 drd Exp $
  2. C 10 October 1997
  3. C Copyright (C) 1986 - 1993, 1997   Thomas Williams, Colin Kelley
  4. C
  5. ^ <h2> An Interactive Plotting Program </h2><p>
  6. ^ <h2>  Thomas Williams & Colin Kelley</h2><p>
  7. ^ <h2>   Version 3.6 organized by: David Denholm </h2><p>
  8. ^ <h2>Major contributors (alphabetic order):</h2>
  9. ^<ul><h3>
  10. ^<li>  John Campbell
  11. ^<li>  Robert Cunningham
  12. ^<li>  David Denholm
  13. ^<li>  Gershon Elber
  14. ^<li>  Roger Fearick
  15. ^<li>  Carsten Grammes
  16. ^<li>  Thomas Koenig
  17. ^<li>  David Kotz
  18. ^<li>  Ed Kubaitis
  19. ^<li>  Russell Lang
  20. ^<li>  Alexander Lehmann
  21. ^<li>  Carsten Steger
  22. ^<li>  Tom Tkacik
  23. ^<li>  Jos Van der Woude
  24. ^<li>  Alex Woo
  25. ^</h3></ul> <p>
  26. ^<h2>  Copyright (C) 1986 - 1993, 1997   Thomas Williams, Colin Kelley<p>
  27. ^   Mailing list for comments: info-gnuplot@dartmouth.edu <p>
  28. ^   Mailing list for bug reports: bug-gnuplot@dartmouth.edu<p>
  29. ^</h2><p>
  30. ^<h3> This manual was prepared by Dick Crawford</h3><p>
  31. ^<h3> 10 October 1997</h3><p>
  32. ^<hr>
  33. 1 gnuplot
  34. 2 Copyright
  35. ?copyright
  36.        Copyright (C) 1986 - 1993, 1997   Thomas Williams, Colin Kelley
  37.  
  38.  Permission to use, copy, and distribute this software and its documentation
  39.  for any purpose with or without fee is hereby granted, provided that the
  40.  above copyright notice appears in all copies and that both that copyright
  41.  notice and this permission notice appear in supporting documentation.
  42.  
  43.  Permission to modify the software is granted, but not the right to distribute
  44.  the modified code.  Modifications are to be distributed as patches to the
  45.  released version.
  46.  
  47.  This software is provided "as is" without express or implied warranty.
  48.  
  49.  
  50.        AUTHORS
  51.  
  52.        Original Software:
  53.           Thomas Williams,  Colin Kelley.
  54.  
  55.        Gnuplot 2.0 additions:
  56.           Russell Lang, Dave Kotz, John Campbell.
  57.  
  58.        Gnuplot 3.0 additions:
  59.           Gershon Elber and many others.
  60. 2 Introduction
  61. ?introduction
  62. ?
  63.  `gnuplot` is a command-driven interactive function and data plotting program.
  64.  It is case sensitive (commands and function names written in lowercase are
  65.  not the same as those written in CAPS).  All command names may be abbreviated
  66.  as long as the abbreviation is not ambiguous.  Any number of commands may
  67.  appear on a line (with the exception that `load` or `call` must be the final
  68.  command), separated by semicolons (;).  Strings are indicated with quotes.
  69.  They may be either single or double quotation marks, e.g.,
  70.  
  71.        load "filename"
  72.        cd 'dir'
  73.  
  74.  although there are some subtle differences (see `syntax` for more details).
  75.  
  76.  Any command-line arguments are assumed to be names of files containing
  77.  `gnuplot` commands, with the exception of standard X11 arguments, which are
  78.  processed first.  Each file is loaded with the `load` command, in the order
  79.  specified.  `gnuplot` exits after the last file is processed.  When no load
  80.  files are named, `gnuplot` enters into an interactive mode.
  81.  
  82.  Many `gnuplot` commands have multiple options.  These options must appear in
  83.  the proper order, although unwanted ones may be omitted in most cases.  Thus
  84.  if the entire command is "command a b c", then "command a c" will probably
  85.  work, but "command c a" will fail.
  86.  
  87.  Commands may extend over several input lines by ending each line but the last
  88.  with a backslash (\).  The backslash must be the _last_ character on each
  89.  line.  The effect is as if the backslash and newline were not there.  That
  90.  is, no white space is implied, nor is a comment terminated.  Therefore,
  91.  commenting out a continued line comments out the entire command (see
  92.  `comment`).  But note that if an error occurs somewhere on a multi-line
  93.  command, the parser may not be able to locate precisely where the error is
  94.  and in that case will not necessarily point to the correct line.
  95.  
  96.  In this document, curly braces ({}) denote optional arguments and a vertical
  97.  bar (|) separates mutually exclusive choices.  `gnuplot` keywords or `help`
  98.  topics are indicated by backquotes or `boldface` (where available).  Angle
  99.  brackets (<>) are used to mark replaceable tokens.
  100.  
  101.  For on-line help on any topic, type `help` followed by the name of the topic
  102.  or just `help` or `?` to get a menu of available topics.
  103.  
  104.  The new `gnuplot` user should begin by reading about the `plot` command (if
  105.  on-line, type `help plot`).
  106. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/simple/simple.html"> Simple Plots Demo </a>
  107. 2 Seeking-assistance
  108. ?seeking-assistance
  109.  There is a mailing list for `gnuplot` users.  Note, however, that the
  110.  newsgroup
  111.        comp.graphics.apps.gnuplot
  112.  is identical to the mailing list (they both carry the same set of messages).
  113.  We prefer that you read the messages through the newsgroup rather than
  114.  subscribing to the mailing list.  Administrative requests should be sent to
  115.        majordomo@dartmouth.edu
  116.  Send a message with the body (not the subject) consisting of the single word
  117.  "help" (without the quotes) for more details.
  118.  
  119.  The address for mailing to list members is:
  120.        info-gnuplot@dartmouth.edu
  121.  
  122.  Bug reports and code contributions should be mailed to:
  123.        bug-gnuplot@dartmouth.edu
  124.  
  125.  The list of those interested in beta-test versions is:
  126.        info-gnuplot-beta@dartmouth.edu
  127.  
  128.  There is also a World Wide Web page with up-to-date information, including
  129.  known bugs:
  130. ^ <a href="http://www.cs.dartmouth.edu/gnuplot_info.html">
  131.        http://www.cs.dartmouth.edu/gnuplot
  132. ^ </a>
  133.  
  134.  Before seeking help, please check the
  135. ^ <a href="http://www.uni-karlsruhe.de/~ig25/gnuplot-faq.html">
  136.  FAQ (Frequently Asked Questions) list.
  137. ^ </a>
  138.  If you do not have a copy of the FAQ, you may request a copy by email from
  139.  the Majordomo address above, or see the WWW `gnuplot` page.
  140.  
  141.  When posting a question, please include full details of the version of
  142.  `gnuplot`, the machine, and operating system you are using.  A _small_ script
  143.  demonstrating the problem may be useful.  Function plots are preferable to
  144.  datafile plots.  If email-ing to info-gnuplot, please state whether or not
  145.  you are subscribed to the list, so that users who use news will know to email
  146.  a reply to you.  There is a form for such postings on the WWW site.
  147. 2 What's New in version 3.6
  148. ?what's-new
  149.  Gnuplot version 3.6 contains many new features.  This section gives a partial
  150.  list and links to the new items in no particular order.
  151.  
  152.  1. `fit f(x) 'file' via` uses the Marquardt-Levenberg method to fit data.
  153.  (This is only slightly different from the `gnufit` patch available for 3.5.)
  154.  
  155.  2. Greatly expanded `using` command.  See `plot using`.
  156.  
  157.  3. `set timefmt` allows for the use of dates as input and output for time
  158.  series plots.  See `Time/Date data` and
  159. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/timefmt/timefmt.html">
  160.  timedat.dem.
  161. ^ </a>
  162.  
  163.  4. Multiline labels and font selection in some drivers.
  164.  
  165.  5. Minor (unlabeled) tics.  See `set mxtics`.
  166.  
  167.  6. `key` options for moving the key box in the page (and even outside of the
  168.  plot), putting a title on it and a box around it, and more.  See `set key`.
  169.  
  170.  7. Multiplots on a single logical page with `set multiplot`.
  171.  
  172.  8. Enhanced `postscript` driver with super/subscripts and font changes.
  173.  (This was a separate driver (`enhpost`) that was available as a patch for
  174.  3.5.)
  175.  
  176.  9. Second axes:  use the top and right axes independently of the bottom and
  177.  left, both for plotting and labels.  See `plot`.
  178.  
  179.  10. Special datafile names `'-'` and `""`.  See `plot special-filenames`.
  180.  
  181.  11. Additional coordinate systems for labels and arrows.  See `coordinates`.
  182.  
  183.  12. `set size` can try to plot with a specified aspect ratio.
  184.  
  185.  13. `set missing` now treats missing data correctly.
  186.  
  187.  14. The `call` command: `load` with arguments.
  188.  
  189.  15. More flexible `range` commands with `reverse` and `writeback` keywords.
  190.  
  191.  16. `set encoding` for multi-lingual encoding.
  192.  
  193.  17. New `x11` driver with persistent and multiple windows.
  194.  
  195.  18. New plotting styles: `xerrorbars`, `histeps`, `financebars` and more.
  196.  See `set style`.
  197.  
  198.  19. New tic label formats, including `"%l %L"` which uses the mantissa and
  199.  exponents to a given base for labels.  See `set format`.
  200.  
  201.  20. New drivers, including `cgm` for inclusion into MS-Office applications
  202.  and `gif` for serving plots to the WEB.
  203.  
  204.  21. Smoothing and spline-fitting options for `plot`.  See `plot smooth`.
  205.  
  206.  22. `set margin` and `set origin` give much better control over where a
  207.  graph appears on the page.
  208.  
  209.  23. `set border` now controls each border individually.
  210.  
  211.  24. The new commands `if` and `reread` allow command loops.
  212.  
  213.  25. Point styles and sizes, line types and widths can be specified on the
  214.  `plot` command.  Line types and widths can also be specified for grids,
  215.  borders, tics and arrows.  See `plot with`.  Furthermore these types may be
  216.  combined and stored for further use.  See `set linestyle`.
  217.  
  218.  26. Text (labels, tic labels, and the time stamp) can be written vertically
  219.  by those terminals capable of doing so.
  220. 2 Command-line-editing
  221. ?line-editing
  222. ?editing
  223. ?history
  224. ?command-line-editing
  225.  Command-line editing is supported by the Unix, Atari, VMS, MS-DOS and OS/2
  226.  versions of `gnuplot`.  Also, a history mechanism allows previous commands to
  227.  be edited and re-executed.  After the command line has been edited, a newline
  228.  or carriage return will enter the entire line without regard to where the
  229.  cursor is positioned.
  230.  
  231.  (The readline function in `gnuplot` is not the same as the readline used in
  232.  GNU Bash and GNU Emacs.  If the GNU version is desired, it may be selected
  233.  instead of the `gnuplot` version at compile time.)
  234.  
  235.  
  236.  The editing commands are as follows:
  237.  
  238. @start table - first is interactive cleartext form
  239.        `Line-editing`:
  240.  
  241.        ^B    moves back a single character.
  242.        ^F    moves forward a single character.
  243.        ^A    moves to the beginning of the line.
  244.        ^E    moves to the end of the line.
  245.        ^H    and DEL delete the previous character.
  246.        ^D    deletes the current character.
  247.        ^K    deletes from current position to the end of line.
  248.        ^L,^R redraws line in case it gets trashed.
  249.        ^U    deletes the entire line.
  250.        ^W    deletes the last word.
  251.  
  252.        `History`:
  253.  
  254.        ^P    moves back through history.
  255.        ^N    moves forward through history.
  256. #Character && Function \\ \hline
  257. #\multicolumn{3}{|c|}{Line Editing}\\
  258. #\verb~^B~ && move back a single character.\\
  259. #\verb~^F~ && move forward a single character.\\
  260. #\verb~^A~ && move to the beginning of the line.\\
  261. #\verb~^E~ && move to the end of the line.\\
  262. #\verb~^H, DEL~ && delete the previous character.\\
  263. #\verb~^D~ && delete the current character.\\
  264. #\verb~^K~ && delete from current position to the end of line.\\
  265. #\verb~^L, ^R~ && redraw line in case it gets trashed.\\
  266. #\verb~^U~ && delete the entire line. \\
  267. #\verb~^W~ && delete from the current word to the end of line. \\ \hline
  268. #\multicolumn{3}{|c|}{History} \\
  269. #\verb~^P~ && move back through history.\\
  270. #\verb~^N~ && move forward through history.\\
  271. %Character@@Function
  272. %_
  273. %@@Line Editing
  274. %^B@@move back a single character.
  275. %^F@@move forward a single character.
  276. %^A@@move to the beginning of the line.
  277. %^E@@move to the end of the line.
  278. %^H, DEL@@delete the previous character.
  279. %^D@@delete the current character.
  280. %^K@@delete from current position to the end of line.
  281. %^L, ^R@@redraw line in case it gets trashed.
  282. %^U@@delete the entire line.
  283. %^W@@delete from the current word to the end of line.
  284. %_
  285. %@@History
  286. %^P@@move back through history.
  287. %^N@@move forward through history.
  288. @end table
  289.  
  290.  On the IBM PC, the use of a TSR program such as DOSEDIT or CED may be desired
  291.  for line editing.  The default makefile assumes that this is the case;  by
  292.  default `gnuplot` will be compiled with no line-editing capability.  If you
  293.  want to use `gnuplot`'s line editing, set READLINE in the makefile and add
  294.  readline.obj to the link file.  The following arrow keys may be used on the
  295.  IBM PC and Atari versions if readline is used:
  296.  
  297. @start table - first is interactive cleartext form
  298.        Left  Arrow      - same as ^B.
  299.        Right Arrow      - same as ^F.
  300.        Ctrl Left  Arrow - same as ^A.
  301.        Ctrl Right Arrow - same as ^E.
  302.        Up    Arrow      - same as ^P.
  303.        Down  Arrow      - same as ^N.
  304. #Arrow key  & Function & \\ \hline
  305. #Left       & same as \verb~^B~. & \\
  306. #Right      & same as \verb~^F~. & \\
  307. #Ctrl Left  & same as \verb~^A~. & \\
  308. #Ctrl Right & same as \verb~^E~. & \\
  309. #Up         & same as \verb~^P~. & \\
  310. #Down       & same as \verb~^N~. & \\
  311. %Arrow key@@Function
  312. %_
  313. %Left Arrow@@same as ^B.
  314. %Right Arrow@@same as ^F.
  315. %Ctrl Left Arrow@@same as ^A.
  316. %Ctrl Right Arrow@@same as ^E.
  317. %Up Arrow@@same as ^P.
  318. %Down Arrow@@same as ^N.
  319. %_
  320. @end table
  321.  
  322.  The Atari version of readline defines some additional key aliases:
  323.  
  324. @start table - first is interactive cleartext form
  325.        Undo            - same as ^L.
  326.        Home            - same as ^A.
  327.        Ctrl Home       - same as ^E.
  328.        Esc             - same as ^U.
  329.        Help            - `help` plus return.
  330.        Ctrl Help       - `help `.
  331. #Arrow key & Function & \\ \hline
  332. #Undo      & same as \verb~^L~. & \\
  333. #Home      & same as \verb~^A~. & \\
  334. #Ctrl Home & same as \verb~^E~. & \\
  335. #Esc       & same as \verb~^U~. & \\
  336. #Help      & `{\bf help}' plus return. & \\
  337. #Ctrl Help & `{\bf help }'. & \\
  338. %Arrow key@@Function
  339. %_
  340. %Undo@@same as ^L.
  341. %Home@@same as ^A.
  342. %Ctrl Home@@same as ^E.
  343. %Esc@@same as ^U.
  344. %Help@@help plus return.
  345. %Ctrl Help@@help .
  346. %_
  347. @end table
  348. 2 Comments
  349. ?comments
  350.  Comments are supported as follows: a # may appear in most places in a line
  351.  and `gnuplot` will ignore the rest of the line.  It will not have this effect
  352.  inside quotes, inside numbers (including complex numbers), inside command
  353.  substitutions, etc.  In short, it works anywhere it makes sense to work.
  354. 2 Coordinates
  355. ?coordinates
  356.  The commands `set arrow`, `set key`, and `set label` allow you to draw
  357.  something at an arbitrary position on the graph.  This position is specified
  358.  by the syntax:
  359.  
  360.        {<system>} <x>, {<system>} <y> {,{<system>} <z>}
  361.  
  362.  Each <system> can either be `first`, `second`, `graph` or `screen`.
  363.  
  364.  `first` places the x, y, or z coordinate in the system defined by the left
  365.  and bottom axes; `second` places it in the system defined by the second axes
  366.  (top and right); `graph` specifies the area within the axes---0,0 is bottom
  367.  left and 1,1 is top right (for splot, 0,0,0 is bottom left of plotting area;
  368.  use negative z to get to the base---see `set ticslevel`); and `screen`
  369.  specifies the screen area (the entire area---not just the portion selected by
  370.  `set size`), with 0,0 at bottom left and 1,1 at top right.
  371.  
  372.  If the coordinate system for x is not specified, `first` is used.  If the
  373.  system for y is not specified, the one used for x is adopted.
  374.  
  375.  If one (or more) axis is timeseries, the appropriate coordinate should
  376.  be given as a quoted time string according to the `timefmt` format string.
  377.  See `set xdata` and `set timefmt`.  `gnuplot` will also accept an integer
  378.  expression, which will be interpreted as seconds from 1 January 2000.
  379. 2 Environment
  380. ?environment
  381.  A number of shell environment variables are understood by `gnuplot`.  None of
  382.  these are required, but may be useful.
  383.  
  384.  If GNUTERM is defined, it is used as the name of the terminal type to be
  385.  used.  This overrides any terminal type sensed by `gnuplot` on start-up, but
  386.  is itself overridden by the .gnuplot (or equivalent) start-up file (see
  387.  `start-up`) and, of course, by later explicit changes.
  388.  
  389.  On Unix, AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUHELP may be defined to be
  390.  the pathname of the HELP file (gnuplot.gih).
  391.  
  392.  On VMS, the logical name gnuplot$HELP should be defined as the name of the
  393.  help library for `gnuplot`.  The `gnuplot` help can be put inside any system
  394.  help library, allowing access to help from both within and outside `gnuplot`
  395.  if desired.
  396.  
  397.  On Unix, HOME is used as the name of a directory to search for a .gnuplot
  398.  file if none is found in the current directory.  On AmigaDOS, AtariTOS,
  399.  MS-DOS and OS/2, gnuplot is used.  On VMS, SYS$LOGIN: is used. See `help
  400.  start-up`.
  401.  
  402.  On Unix, PAGER is used as an output filter for help messages.
  403.  
  404.  On Unix, AtariTOS and AmigaDOS, SHELL is used for the `shell` command.  On
  405.  MS-DOS and OS/2, COMSPEC is used for the `shell` command.
  406.  
  407.  On MS-DOS, if the BGI interface is used, BGI is used to point to the full
  408.  path of the BGI drivers directory.  Furthermore, SVGA is used to name the
  409.  Super VGA BGI driver in 800x600 resolution and its mode of operation is
  410.  Name.Mode.  E.g., if the Super VGA driver is
  411.        C:\TC\BGI\SVGADRV.BGI
  412.  and mode 3 is used for 800x600 resolution, then use the following:
  413.        set BGI=C:\TC\BGI
  414.        set SVGA=SVGADRV.3
  415.  
  416.  FIT_SCRIPT may be used to specify a `gnuplot` command to be executed when a
  417.  fit is interrupted---see `fit`.  FIT_LOG specifies the filename of the
  418.  logfile maintained by fit.
  419. 2 Expressions
  420. ?expressions
  421.  In general, any mathematical expression accepted by C, FORTRAN, Pascal, or
  422.  BASIC is valid.  The precedence of these operators is determined by the
  423.  specifications of the C programming language.  White space (spaces and tabs)
  424.  is ignored inside expressions.
  425.  
  426.  Complex constants are expressed as {<real>,<imag>}, where <real> and <imag>
  427.  must be numerical constants.  For example, {3,2} represents 3 + 2i; {0,1}
  428.  represents 'i' itself.  The curly braces are explicitly required here.
  429.  
  430.  Note that gnuplot uses both "real" and "integer" arithmetic, like FORTRAN and
  431.  C.  Integers are entered as "1", "-10", etc; reals as "1.0", "-10.0", "1e1",
  432.  3.5e-1, etc.  The most important difference between the two forms is in
  433.  division: division of integers truncates: 5/2 = 2; division of reals does
  434.  not: 5.0/2.0 = 2.5.  In mixed expressions, integers are "promoted" to reals
  435.  before evaluation: 5/2e0 = 2.5.  The result of division of a negative integer
  436.  by a positive one may vary among compilers.  Try a test like "print -5/2" to
  437.  determine if your system chooses -2 or -3 as the answer.
  438.  
  439.  The real and imaginary parts of complex expressions are always real, whatever
  440.  the form in which they are entered: in {3,2} the "3" and "2" are reals, not
  441.  integers.
  442. 3 Functions
  443. ?expressions functions
  444. ?functions
  445.  The functions in `gnuplot` are the same as the corresponding functions in
  446.  the Unix math library, except that all functions accept integer, real, and
  447.  complex arguments, unless otherwise noted.
  448.  
  449.  For those functions that accept or return angles that may be given in either
  450.  degrees or radians (sin(x), cos(x), tan(x), asin(x), acos(x), atan(x),
  451.  atan2(x) and arg(z)), the unit may be selected by `set angles`, which
  452.  defaults to radians.
  453.  
  454. @start table
  455. #Function & Arguments & Returns \\ \hline
  456. %Function@Arguments@Returns
  457. %_
  458. 4 abs
  459. ?expressions functions abs
  460. ?functions abs
  461. ?abs
  462. #abs(x) & any  &  absolute value of {\tt x}, $|x|$; same type \\
  463. #abs(x) & complex &  length of {\tt x}, $\sqrt{{\mbox{real}(x)^{2} +
  464. #\mbox{imag}(x)^{2}}}$ \\
  465. %abs(x)@any@absolute value of x, $|x|$; same type
  466. %abs(x)@complex@length of x, $sqrt{roman real (x) sup 2 + roman imag (x) sup 2}$
  467.  The `abs` function returns the absolute value of its argument.  The returned
  468.  value is of the same type as the argument.
  469.  
  470.  For complex arguments, abs(x) is defined as the length of x in the complex
  471.  plane [i.e.,  sqrt(real(x)**2 + imag(x)**2) ].
  472. 4 acos
  473. ?expressions functions acos
  474. ?functions acos
  475. ?acos
  476. #acos(x) & any  & $\cos^{-1} x$ (inverse cosine) \\
  477. %acos(x)@any@$cos sup -1 x$ (inverse cosine)
  478.  The `acos` function returns the arc cosine (inverse cosine) of its argument.
  479.  `acos` returns its argument in radians or degrees, as selected by `set
  480.  angles`.
  481. 4 acosh
  482. ?expressions functions acosh
  483. ?functions acosh
  484. ?acosh
  485. #acosh(x) & any  & $\cosh^{-1} x$ (inverse hyperbolic cosine) in radians \\
  486. %acosh(x)@any@$cosh sup -1 x$ (inverse hyperbolic cosine) in radians
  487.  The `acosh` function returns the inverse hyperbolic cosine of its argument in
  488.  radians.
  489. 4 arg
  490. ?expressions functions arg
  491. ?functions arg
  492. ?arg
  493. #arg(x) & complex & the phase of $x$ \\
  494. %arg(x)@complex@the phase of $x$
  495.  The `arg` function returns the phase of a complex number in radians or
  496.  degrees, as selected by `set angles`.
  497. 4 asin
  498. ?expressions functions asin
  499. ?functions asin
  500. ?asin
  501. #asin(x) & any  & $\sin^{-1} x$ (inverse sin) \\
  502. %asin(x)@any@$sin sup -1 x$ (inverse sin)
  503.  The `asin` function returns the arc sin (inverse sin) of its argument.
  504.  `asin` returns its argument in radians or degrees, as selected by `set
  505.  angles`.
  506. 4 asinh
  507. ?expressions functions asinh
  508. ?functions asinh
  509. ?asinh
  510. #asinh(x) & any  & $\sinh^{-1} x$ (inverse hyperbolic sin) in radians \\
  511. %asinh(x)@any@$sinh sup -1 x$ (inverse hyperbolic sin) in radians
  512.  The `asinh` function returns the inverse hyperbolic sin of its argument in
  513.  radians.
  514. 4 atan
  515. ?expressions functions atan
  516. ?functions atan
  517. ?atan
  518. #atan(x) & any  & $\tan^{-1} x$ (inverse tangent) \\
  519. %atan(x)@any@$tan sup -1 x$ (inverse tangent)
  520.  The `atan` function returns the arc tangent (inverse tangent) of its
  521.  argument.  `atan` returns its argument in radians or degrees, as selected by
  522.  `set angles`.
  523. 4 atan2
  524. ?expressions functions atan2
  525. ?functions atan2
  526. ?atan2
  527. #atan2(y,x) & int or real & $\tan^{-1} (y/x)$ (inverse tangent) \\
  528. %atan2(y,x)@int or real@$tan sup -1 (y/x)$ (inverse tangent)
  529.  The `atan2` function returns the arc tangent (inverse tangent) of the ratio
  530.  of the real parts of its arguments.  `atan2` returns its argument in radians
  531.  or degrees, as selected by `set angles`, in the correct quadrant.
  532. 4 atanh
  533. ?expressions functions atanh
  534. ?functions atanh
  535. ?atan
  536. #atanh(x) & any  & $\tanh^{-1} x$ (inverse hyperbolic tangent) in radians \\
  537. %atanh(x)@any@$tanh sup -1 x$ (inverse hyperbolic tangent) in radians
  538.  The `atanh` function returns the inverse hyperbolic tangent of its argument
  539.  in radians.
  540. 4 besj0
  541. ?expressions functions besj0
  542. ?functions besj0
  543. ?besj0
  544. #besj0(x) & int or real &  $j_{0}$ Bessel function of $x$, in radians \\
  545. %besj0(x)@int or real@$j sub 0$ Bessel function of $x$, in radians
  546.  The `besj0` function returns the j0th Bessel function of its argument.
  547.  `besj0` expects its argument to be in radians.
  548. 4 besj1
  549. ?expressions functions besj1
  550. ?functions besj1
  551. ?besj1
  552. #besj1(x) & int or real & $j_{1}$ Bessel function of $x$, in radians \\
  553. %besj1(x)@int or real@$j sub 1$ Bessel function of $x$, in radians
  554.  The `besj1` function returns the j1st Bessel function of its argument.
  555.  `besj1` expects its argument to be in radians.
  556. 4 besy0
  557. ?expressions functions besy0
  558. ?functions besy0
  559. ?besy0
  560. #besy0(x) & int or real & $y_{0}$ Bessel function of $x$, in radians \\
  561. %besy0(x)@int or real@$y sub 0$ Bessel function of $x$, in radians
  562.  The `besy0` function returns the y0th Bessel function of its argument.
  563.  `besy0` expects its argument to be in radians.
  564. 4 besy1
  565. ?expressions functions besy1
  566. ?functions besy1
  567. ?besy1
  568. #besy1(x) & int or real & $y_{1}$ Bessel function of $x$, in radians \\
  569. %besy1(x)@int or real@$y sub 1$ Bessel function of $x$, in radians
  570.  The `besy1` function returns the y1st Bessel function of its argument.
  571.  `besy1` expects its argument to be in radians.
  572. 4 ceil
  573. ?expressions functions ceil
  574. ?functions ceil
  575. ?ceil
  576. #ceil(x) & any & $\lceil x \rceil$, smallest integer not less than $x$
  577. #(real part) \\
  578. %ceil(x)@any@$left ceiling x right ceiling$, smallest integer not less than $x$ (real part)
  579.  The `ceil` function returns the smallest integer that is not less than its
  580.  argument.  For complex numbers, `ceil` returns the smallest integer not less
  581.  than the real part of its argument.
  582. 4 cos
  583. ?expressions functions cos
  584. ?functions cos
  585. ?cos
  586. #cos(x) & any & $\cos x$, cosine of $x$ \\
  587. %cos(x)@radians@$cos~x$, cosine of $x$
  588.  The `cos` function returns the cosine of its argument.  `cos` accepts its
  589.  argument in radians or degrees, as selected by `set angles`.
  590. 4 cosh
  591. ?expressions functions cosh
  592. ?functions cosh
  593. ?cosh
  594. #cosh(x) & any & $\cosh x$, hyperbolic cosine of $x$ in radians \\
  595. %cosh(x)@any@$cosh~x$, hyperbolic cosine of $x$ in radians
  596.  The `cosh` function returns the hyperbolic cosine of its argument.  `cosh`
  597.  expects its argument to be in radians.
  598. 4 erf
  599. ?expressions functions erf
  600. ?functions erf
  601. ?erf
  602. #erf(x) & any & $\mbox{Erf}(\mbox{real}(x))$,  error function of real($x$) \\
  603. %erf(x)@any@$erf ( roman real (x))$, error function of real ($x$)
  604.  The `erf` function returns the error function of the real part of its
  605.  argument.  If the argument is a complex value, the imaginary component is
  606.  ignored.
  607. 4 erfc
  608. ?expressions functions erfc
  609. ?functions erfc
  610. ?erfc
  611. #erfc(x) & any & $\mbox{Erfc}(\mbox{real}(x))$,  1.0 - error function of real($x$) \\
  612. %erfc(x)@any@$erfc ( roman real (x))$, 1.0 - error function of real ($x$)
  613.  The `erfc` function returns 1.0 - the error function of the real part of its
  614.  argument.  If the argument is a complex value, the imaginary component is
  615.  ignored.
  616. 4 exp
  617. ?expressions functions exp
  618. ?functions exp
  619. ?exp
  620. #exp(x) & any & $e^{x}$,  exponential function of $x$ \\
  621. %exp(x)@any@$e sup x$, exponential function of $x$
  622.  The `exp` function returns the exponential function of its argument (`e`
  623.  raised to the power of its argument).  On some implementations (notably
  624.  suns), exp(-x) returns undefined for very large x.  A user-defined function
  625.  like safe(x) = x<-100 ? 0 : exp(x) might prove useful in these cases.
  626. 4 floor
  627. ?expressions functions floor
  628. ?functions floor
  629. ?floor
  630. #floor(x) & any & $\lfloor x \rfloor$,  largest integer not greater
  631. #than $x$ (real part) \\
  632. %floor(x)@any@$left floor x right floor$, largest integer not greater than $x$ (real part)
  633.  The `floor` function returns the largest integer not greater than its
  634.  argument.  For complex numbers, `floor` returns the largest integer not
  635.  greater than the real part of its argument.
  636. 4 gamma
  637. ?expressions functions gamma
  638. ?functions gamma
  639. ?gamma
  640. #gamma(x) & any & $\mbox{Gamma}(\mbox{real}(x))$,  gamma function of real($x$) \\
  641. %gamma(x)@any@$GAMMA ( roman real (x))$, gamma function of real ($x$)
  642.  The `gamma` function returns the gamma function of the real part of its
  643.  argument.  For integer n, gamma(n+1) = n!.  If the argument is a complex
  644.  value, the imaginary component is ignored.
  645. 4 ibeta
  646. ?expressions functions ibeta
  647. ?functions ibeta
  648. ?ibeta
  649. #ibeta(p,q,x) & any & $\mbox{Ibeta}(\mbox{real}(p,q,x))$,  ibeta function of real($p$,$q$,$x$) \\
  650. %ibeta(p,q,x)@any@$Ibeta ( roman real (p,q,x))$, ibeta function of real ($p$,$q$,$x$)
  651.  The `ibeta` function returns the incomplete beta function of the real parts
  652.  of its arguments. p, q > 0 and x in [0:1].  If the arguments are complex,
  653.  the imaginary components are ignored.
  654. 4 inverf
  655. ?expressions functions inverf
  656. ?functions inverf
  657. ?inverf
  658. #inverf(x) & any &  inverse error function of real($x$)  \\
  659. %inverf(x)@any@inverse error function real($x$)
  660.  The `inverf` function returns the inverse error function of the real part
  661.  of its argument.
  662. 4 igamma
  663. ?expressions functions igamma
  664. ?functions igamma
  665. ?igamma
  666. #igamma(a,x) & any & $\mbox{Igamma}(\mbox{real}(a,x))$,  igamma function of real($a$,$x$) \\
  667. %igamma(a,x)@any@$Igamma ( roman real (a,x))$, igamma function of real ($a$,$x$)
  668.  The `igamma` function returns the incomplete gamma function of the real
  669.  parts of its arguments.  a > 0 and x >= 0.  If the arguments are complex,
  670.  the imaginary components are ignored.
  671. 4 imag
  672. ?expressions functions imag
  673. ?functions imag
  674. ?imag
  675. #imag(x) & complex &  imaginary part of $x$ as a real number \\
  676. %imag(x)@complex@imaginary part of $x$ as a real number
  677.  The `imag` function returns the imaginary part of its argument as a real
  678.  number.
  679. 4 invnorm
  680. ?expressions functions invnorm
  681. ?functions invnorm
  682. ?invnorm
  683. #invnorm(x) & any &  inverse normal distribution function of real($x$)  \\
  684. %invnorm(x)@any@inverse normal distribution function real($x$)
  685.  The `invnorm` function returns the inverse normal distribution function of
  686.  the real part of its argument.
  687. 4 int
  688. ?expressions functions int
  689. ?functions int
  690. ?int
  691. #int(x) & real &  integer part of $x$, truncated toward zero \\
  692. %int(x)@real@integer part of $x$, truncated toward zero
  693.  The `int` function returns the integer part of its argument, truncated
  694.  toward zero.
  695. 4 lgamma
  696. ?expressions functions lgamma
  697. ?functions lgamma
  698. ?lgamma
  699. #lgamma(x) & any & $\mbox{Lgamma}(\mbox{real}(x))$,  lgamma function of real($x$) \\
  700. %lgamma(x)@any@$Lgamma ( roman real (x))$, lgamma function of real ($x$)
  701.  The `lgamma` function returns the natural logarithm of the gamma function
  702.  of the real part of its argument.  If the argument is a complex value, the
  703.  imaginary component is ignored.
  704. 4 log
  705. ?expressions functions log
  706. ?functions log
  707. ?log
  708. #log(x) & any & $\log_{e} x$,  natural logarithm (base $e$) of $x$ \\
  709. %log(x)@any@$ln~x$, natural logarithm (base $e$) of $x$
  710.  The `log` function returns the natural logarithm (base `e`) of its argument.
  711. 4 log10
  712. ?expressions functions log10
  713. ?functions log10
  714. ?log10
  715. #log10(x) & any & $\log_{10} x$,  logarithm (base $10$) of $x$ \\
  716. %log10(x)@any@${log sub 10}~x$, logarithm (base $10$) of $x$
  717.  The `log10` function returns the logarithm (base 10) of its argument.
  718. 4 norm
  719. ?expressions functions norm
  720. ?functions norm
  721. ?norm
  722. #norm(x) & any & normal distribution (Gaussian) function of real($x$) \\
  723. %norm(x)@any@$norm(x)$, normal distribution function of real($x$)
  724.  The `norm` function returns the normal distribution function (or Gaussian)
  725.  of the real part of its argument.
  726. 4 rand
  727. ?expressions functions rand
  728. ?functions rand
  729. ?rand
  730. #rand(x) & any & $\mbox{Rand}(\mbox{real}(x))$,  pseudo random number generator \\
  731. %rand(x)@any@$rand ( roman real (x))$, pseudo random number generator
  732.  The `rand` function returns a pseudo random number in the interval [0:1]
  733.  using the real part of its argument as a seed.  If seed < 0, the sequence
  734.  is (re)initialized.  If the argument is a complex value, the imaginary
  735.  component is ignored.
  736. 4 real
  737. ?expressions functions real
  738. ?functions real
  739. ?real
  740. #real(x) & any &  real part of $x$ \\
  741. %real(x)@any@real part of $x$
  742.  The `real` function returns the real part of its argument.
  743. 4 sgn
  744. ?expressions functions sgn
  745. ?functions sgn
  746. ?sgn
  747. #sgn(x) & any & 1 if $x>0$, -1 if $x<0$, 0 if $x=0$. imag($x$) ignored \\
  748. %sgn(x)@any@1 if $x > 0$, -1 if $x < 0$, 0 if $x = 0$. $roman imag (x)$ ignored
  749.  The `sgn` function returns 1 if its argument is positive, -1 if its argument
  750.  is negative, and 0 if its argument is 0.  If the argument is a complex value,
  751.  the imaginary component is ignored.
  752. 4 sin
  753. ?expressions functions sin
  754. ?functions sin
  755. ?sin
  756. #sin(x) & any & $\sin x$, sine of $x$ \\
  757. %sin(x)@any@$sin~x$, sine of $x$
  758.  The `sin` function returns the sine of its argument.  `sin` expects its
  759.  argument to be in radians or degrees, as selected by `set angles`.
  760. 4 sinh
  761. ?expressions functions sinh
  762. ?functions sinh
  763. ?sinh
  764. #sinh(x) & any & $\sinh x$, hyperbolic sine $x$ in radians \\
  765. %sinh(x)@any@$sinh~x$, hyperbolic sine $x$ in radians
  766.  The `sinh` function returns the hyperbolic sine of its argument.  `sinh`
  767.  expects its argument to be in radians.
  768. 4 sqrt
  769. ?expressions functions sqrt
  770. ?functions sqrt
  771. ?sqrt
  772. #sqrt(x) & any & $\sqrt{x}$,  square root of $x$ \\
  773. %sqrt(x)@any@$sqrt x $, square root of $x$
  774.  The `sqrt` function returns the square root of its argument.
  775. 4 tan
  776. ?expressions functions tan
  777. ?functions tan
  778. ?tan
  779. #tan(x) & any & $\tan x$,  tangent of $x$ \\
  780. %tan(x)@any@$tan~x$, tangent of $x$
  781.  The `tan` function returns the tangent of its argument.  `tan` expects
  782.  its argument to be in radians or degrees, as selected by `set angles`.
  783. 4 tanh
  784. ?expressions functions tanh
  785. ?functions tanh
  786. ?tanh
  787. #tanh(x) & any & $\tanh x$, hyperbolic tangent of $x$ in radians\\
  788. %tanh(x)@any@$tanh~x$, hyperbolic tangent of $x$ in radians
  789.  The `tanh` function returns the hyperbolic tangent of its argument.  `tanh`
  790.  expects its argument to be in radians.
  791. @end table
  792.  
  793.  A few additional functions are also available.
  794.  
  795. @start table
  796. #Function & Arguments & Returns \\ \hline
  797. %Function@Arguments@Returns
  798. %_
  799. 4 column
  800. ?expressions functions column
  801. ?functions column
  802. ?column
  803. #column(x) & int & column $x$ during datafile manipulation. \\
  804. %column(x)@int@ column $x$ during datafile manipulation.
  805.  `column(x)` may be used only in expressions as part of `using` manipulations
  806.  to fits or datafile plots.  See `plot datafile using`.
  807. 4 tm_hour
  808. ?expressions tm_hour
  809. ?functions tm_hour
  810. #tm\_hour(x) & int & the hour \\
  811. %tm_hour(x)@int@the hour
  812.  The `tm_hour` function interprets its argument as a time, in seconds from
  813.  1 Jan 2000.  It returns the hour (an integer in the range 0--23) as a real.
  814. 4 tm_mday
  815. ?expressions tm_mday
  816. ?functions tm_mday
  817. #tm\_mday(x) & int & the day of the month \\
  818. %tm_mday(x)@int@the day of the month
  819.  The `tm_mday` function interprets its argument as a time, in seconds from
  820.  1 Jan 2000.  It returns the day of the month (an integer in the range 1--31)
  821.  as a real.
  822. 4 tm_min
  823. ?expressions tm_min
  824. ?functions tm_min
  825. #tm\_min(x) & int & the minute \\
  826. %tm_min(x)@int@the minute
  827.  The `tm_min` function interprets its argument as a time, in seconds from
  828.  1 Jan 2000.  It returns the minute (an integer in the range 0--59) as a real.
  829. 4 tm_mon
  830. ?expressions tm_mon
  831. ?functions tm_mon
  832. #tm\_mon(x) & int & the month \\
  833. %tm_mon(x)@int@the month
  834.  The `tm_mon` function interprets its argument as a time, in seconds from
  835.  1 Jan 2000.  It returns the month (an integer in the range 1--12) as a real.
  836. 4 tm_sec
  837. ?expressions tm_sec
  838. ?functions tm_sec
  839. #tm\_sec(x) & int & the second \\
  840. %tm_sec(x)@int@the second
  841.  The `tm_sec` function interprets its argument as a time, in seconds from
  842.  1 Jan 2000.  It returns the second (an integer in the range 0--59) as a real.
  843. 4 tm_wday
  844. ?expressions tm_wday
  845. ?functions tm_wday
  846. #tm\_wday(x) & int & the day of the week \\
  847. %tm_wday(x)@int@the day of the week
  848.  The `tm_wday` function interprets its argument as a time, in seconds from
  849.  1 Jan 2000.  It returns the day of the week (an integer in the range 1--7) as
  850.  a real.
  851. 4 tm_yday
  852. ?expressions tm_yday
  853. ?functions tm_yday
  854. #tm\_yday(x) & int & the day of the year \\
  855. %tm_yday(x)@int@the day of the year
  856.  The `tm_yday` function interprets its argument as a time, in seconds from
  857.  1 Jan 2000.  It returns the day of the year (an integer in the range 1--366)
  858.  as a real.
  859. 4 tm_year
  860. ?expressions tm_year
  861. ?functions tm_year
  862. #tm\_year(x) & int & the year \\
  863. %tm_year(x)@int@the year
  864.  The `tm_year` function interprets its argument as a time, in seconds from
  865.  1 Jan 2000.  It returns the year (an integer) as a real.
  866. 4 valid
  867. ?expressions functions valid
  868. ?functions valid
  869. ?valid
  870. #valid(x) & int & test validity of $\mbox{column}(x)$ during datafile manip.\\
  871. %valid(x)@int@ test validity of column($x$) during datafile manip.
  872.  `valid(x)` may be used only in expressions as part of `using` manipulations
  873.  to fits or datafile plots.  See `plot datafile using`.
  874. @end table
  875. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/airfoil/airfoil.html">Use of functions and complex variables for airfoils </a>
  876. 3 Operators
  877. ?expressions operators
  878. ?operators
  879.  The operators in `gnuplot` are the same as the corresponding operators in the
  880.  C programming language, except that all operators accept integer, real, and
  881.  complex arguments, unless otherwise noted.  The ** operator (exponentiation)
  882.  is supported, as in FORTRAN.
  883.  
  884.  Parentheses may be used to change order of evaluation.
  885. 4 Unary
  886. ?expressions operators unary
  887. ?operators unary
  888. ?unary
  889.  The following is a list of all the unary operators and their usages:
  890.  
  891. @start table - first is interactive cleartext form
  892.      Symbol      Example    Explanation
  893.        -           -a          unary minus
  894.        +           +a          unary plus (no-operation)
  895.        ~           ~a        * one's complement
  896.        !           !a        * logical negation
  897.        !           a!        * factorial
  898.        $           $3        * call arg/column during `using` manipulation
  899. #\multicolumn{3}{|c|}{Unary Operators}\\
  900. #Symbol & Example & Explanation \\ \hline
  901. #\verb@-@ & \verb@-a@ & unary minus \\
  902. #\verb@+@ & \verb@+a@ & unary plus (no-operation) \\
  903. #\verb@~@ & \verb@~a@ & * one's complement \\
  904. #\verb@!@ & \verb@!a@ & * logical negation \\
  905. #\verb@!@ & \verb@a!@ & * factorial \\
  906. #\verb@$@ & \verb@$3@ & * call arg/column during `using` manipulation \\
  907. C ugly hack: doc2ms uses $ as delimiter for eqn's so it doesn't seem to
  908. C be able to print them. So we have to typeset this table without using
  909. C eqn (at least that's the only solution I found, without any real docs
  910. C on *roff and eqn
  911. C First, terminate the table doc2ms.c already started:
  912. %.TE
  913. C ... then turn off eqn delimiters:
  914. %.EQ
  915. %delim off
  916. %.EN
  917. C ... and restart the table:
  918. %.TS
  919. %center box tab (@) ;
  920. %c c l .
  921. %Symbol@Example@Explanation
  922. %_
  923. %-@-a@unary minus
  924. %+@+a@unary plus (no-operation)
  925. %~@~a@* one's complement
  926. %!@!a@* logical negation
  927. %!@a!@* factorial
  928. %$@$3@* call arg/column during `using` manipulation
  929. %_
  930. @end table
  931.  (*) Starred explanations indicate that the operator requires an integer
  932.  argument.
  933.  
  934.  Operator precedence is the same as in Fortran and C.  As in those languages,
  935.  parentheses may be used to change the order of operation.  Thus -2**2 = -4,
  936.  but (-2)**2 = 4.
  937.  
  938.  The factorial operator returns a real number to allow a greater range.
  939. 4 Binary
  940. ?expressions operators binary
  941. ?operators binary
  942. ?binary
  943.  The following is a list of all the binary operators and their usages:
  944.  
  945. @start table - first is interactive cleartext form
  946.      Symbol       Example      Explanation
  947.        **          a**b          exponentiation
  948.        *           a*b           multiplication
  949.        /           a/b           division
  950.        %           a%b         * modulo
  951.        +           a+b           addition
  952.        -           a-b           subtraction
  953.        ==          a==b          equality
  954.        !=          a!=b          inequality
  955.        <           a<b           less than
  956.        <=          a<=b          less than or equal to
  957.        >           a>b           greater than
  958.        >=          a>=b          greater than or equal to
  959.        &           a&b         * bitwise AND
  960.        ^           a^b         * bitwise exclusive OR
  961.        |           a|b         * bitwise inclusive OR
  962.        &&          a&&b        * logical AND
  963.        ||          a||b        * logical OR
  964. #\multicolumn{3}{|c|}{Binary Operators} \\
  965. #Symbol & Example & Explanation \\ \hline
  966. #\verb~**~ & \verb~a**b~ & exponentiation\\
  967. #\verb~*~ & \verb~a*b~ & multiplication\\
  968. #\verb~/~ & \verb~a/b~ & division\\
  969. #\verb~%~ & \verb~a%b~ & * modulo\\
  970. #\verb~+~ & \verb~a+b~ & addition\\
  971. #\verb~-~ & \verb~a-b~ & subtraction\\
  972. #\verb~==~ & \verb~a==b~ & equality\\
  973. #\verb~!=~ & \verb~a!=b~ & inequality\\
  974. #\verb~<~ & \verb~a<b~ & less than\\
  975. #\verb~<=~ & \verb~a<=b~ & less than or equal to\\
  976. #\verb~>~ & \verb~a>b~ & greater than\\
  977. #\verb~>=~ & \verb~a>=b~ & greater than or equal to\\
  978. #\verb~&~ & \verb~a&b~ & * bitwise AND\\
  979. #\verb~^~ & \verb~a^b~ & * bitwise exclusive OR\\
  980. #\verb~|~ & \verb~a|b~ & * bitwise inclusive OR\\
  981. #\verb~&&~ & \verb~a&&b~ & * logical AND\\
  982. #\verb~||~ & \verb~a||b~ & * logical OR\\
  983. %Symbol@Example@Explanation
  984. %_
  985. %**@a**b@exponentiation
  986. %*@a*b@multiplication
  987. %/@a/b@division
  988. %%@a%b@* modulo
  989. %+@a+b@addition
  990. %-@a-b@subtraction
  991. %==@a==b@equality
  992. %!=@a!=b@inequality
  993. %<@a<b@less than
  994. %<=@a<=b@less than or equal to
  995. %>@a>b@greater than
  996. %>=@a>=b@greater than or equal to
  997. %&@a&b@* bitwise AND
  998. %^@a^b@* bitwise exclusive OR
  999. %|@a|b@* bitwise inclusive OR
  1000. %&&@a&&b@* logical AND
  1001. %||@a||b@* logical OR
  1002.  
  1003. @end table
  1004.  (*) Starred explanations indicate that the operator requires integer
  1005.  arguments.
  1006.  
  1007.  Logical AND (&&) and OR (||) short-circuit the way they do in C.  That is,
  1008.  the second `&&` operand is not evaluated if the first is false; the second
  1009.  `||` operand is not evaluated if the first is true.
  1010. 4 Ternary
  1011. ?expressions operators ternary
  1012. ?operators ternary
  1013. ?ternary
  1014.  There is a single ternary operator:
  1015.  
  1016. @start table - first is interactive cleartext form
  1017.      Symbol       Example      Explanation
  1018.        ?:          a?b:c     ternary operation
  1019. #\multicolumn{3}{|c|}{Ternary Operator} \\
  1020. #Symbol & Example & Explanation \\ \hline
  1021. #\verb~?:~ & \verb~a?b:c~ & ternary operation\\
  1022. %Symbol@Example@Explanation
  1023. %_
  1024. %?:@a?b:c@* ternary operation
  1025.  
  1026. @end table
  1027.  The ternary operator behaves as it does in C.  The first argument (a), which
  1028.  must be an integer, is evaluated.  If it is true (non-zero), the second
  1029.  argument (b) is evaluated and returned; otherwise the third argument (c) is
  1030.  evaluated and returned.
  1031.  
  1032.  The ternary operator is very useful both in constructing piecewise functions
  1033.  and in plotting points only when certain conditions are met.
  1034.  
  1035.  Examples:
  1036.  
  1037.  Plot a function that is to equal sin(x) for 0 <= x < 1, 1/x for 1 <= x < 2,
  1038.  and undefined elsewhere:
  1039.        f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0
  1040.        plot f(x)
  1041. ^ <img align=bottom src="http://www.nas.nasa.gov/~woo/gnuplot/doc/ternary.gif" alt="[ternary.gif]" width=640 height=480>
  1042.  Note that `gnuplot` quietly ignores undefined values, so the final branch of
  1043.  the function (1/0) will produce no plottable points.  Note also that f(x)
  1044.  will be plotted as a continuous function across the discontinuity if a line
  1045.  style is used.  To plot it discontinuously, create separate functions for the
  1046.  two pieces.  (Parametric functions are also useful for this purpose.)
  1047.  
  1048.  For data in a file, plot the average of the data in columns 2 and 3 against
  1049.  the datum in column 1, but only if the datum in column 4 is non-negative:
  1050.  
  1051.        plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )
  1052.  
  1053.  Please see `plot data-file using` for an explanation of the `using` syntax.
  1054. 3 User-defined
  1055. ?expressions user-defined
  1056. ?user-defined
  1057. ?variables
  1058.  New user-defined variables and functions of one through five variables may
  1059.  be declared and used anywhere, including on the `plot` command itself.
  1060.  
  1061.  User-defined function syntax:
  1062.        <func-name>( <dummy1> {,<dummy2>} ... {,<dummy5>} ) = <expression>
  1063.  
  1064.  where <expression> is defined in terms of <dummy1> through <dummy5>.
  1065.  
  1066.  User-defined variable syntax:
  1067.        <variable-name> = <constant-expression>
  1068.  
  1069.  Examples:
  1070.        w = 2
  1071.        q = floor(tan(pi/2 - 0.1))
  1072.        f(x) = sin(w*x)
  1073.        sinc(x) = sin(pi*x)/(pi*x)
  1074.        delta(t) = (t == 0)
  1075.        ramp(t) = (t > 0) ? t : 0
  1076.        min(a,b) = (a < b) ? a : b
  1077.        comb(n,k) = n!/(k!*(n-k)!)
  1078.        len3d(x,y,z) = sqrt(x*x+y*y+z*z)
  1079.        plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x)
  1080.  
  1081. ^ <img align=bottom src="http://www.nas.nasa.gov/~woo/gnuplot/doc/userdefined.gif" alt="[userdefined.gif]" width=640 height=480>
  1082.  Note that the variable `pi` is already defined.  But it is in no way magic;
  1083.  you may redefine it to be whatever you like.
  1084.  
  1085.  Valid names are the same as in most programming languages: they must begin
  1086.  with a letter, but subsequent characters may be letters, digits, "$", or "_".
  1087.  Note, however, that the `fit` mechanism uses several variables with names
  1088.  that begin "FIT_".  It is safest to avoid using such names.  "FIT_LIMIT",
  1089.  however, is one that you may wish to redefine.
  1090.  
  1091.  See `show functions` and `show variables`.
  1092. 2 Glossary
  1093. ?glossary
  1094.  Throughout this document an attempt has been made to maintain consistency of
  1095.  nomenclature.  This cannot be wholly successful because as `gnuplot` has
  1096.  evolved over time, certain command and keyword names have been adopted that
  1097.  preclude such perfection.  This section contains explanations of the way
  1098.  some of these terms are used.
  1099.  
  1100.  A "page" or "screen" is the entire area addressable by `gnuplot`.  On a
  1101.  monitor, it is the full screen; on a plotter, it is a single sheet of
  1102.  paper.
  1103.  
  1104.  A screen may contain one or more "plots".  A plot is defined by an
  1105.  abscissa and an ordinate, although these need not actually appear on it, as
  1106.  well as the margins and any text written therein.
  1107.  
  1108.  A plot contains one "graph".  A graph is defined by an abscissa and an
  1109.  ordinate, although these need not actually appear on it.
  1110.  
  1111.  A graph may contain one or more "lines".  A line is a single function or
  1112.  data set.  "Line" is also a plotting style.  The word will also be used in
  1113.  sense "a line of text".  Presumably the context will always remove the
  1114.  ambiguity.
  1115.  
  1116.  The lines on a graph may have individual names.  These may be listed together
  1117.  with a sample of the plotting style used to represent them in the "key",
  1118.  sometimes also called the "legend".
  1119.  
  1120.  The word "title" occurs with multiple meanings in `gnuplot`.  In this
  1121.  document, it will always be preceded by the adjective "plot", "line", or
  1122.  "key" to differentiate among them.
  1123.  
  1124.  A graph may have up to four labelled axes.  Various commands have the name of
  1125.  an axis built into their names, such as `set xlabel`.  Other commands have
  1126.  one or more axis names as options, such as `set logscale xy`.  The names of
  1127.  the four axes for these usages are "x" for the axis along the bottom border
  1128.  of the plot, "y" for the left border, "x2" for the top border, and "y2" for
  1129.  the right border.  "z" also occurs in commands used with 3-d plotting.
  1130.  
  1131.  When discussing data files, the term "record" will be resurrected and used to
  1132.  denote a single line in the file, that is, the characters between newline or
  1133.  end-of-record characters.  A "point" is the datum on a single record, and a
  1134.  "dataline" is a set of points on consecutive records, delimited by blank
  1135.  records.
  1136. 2 Plotting
  1137. ?plotting
  1138.  There are three `gnuplot` commands which actually create a plot: `plot`,
  1139.  `splot` and `replot`.  `plot` generates 2-d plots, `splot` generates 3-d
  1140.  plots (actually 2-d projections, of course), and `replot` appends its
  1141.  arguments to the previous `plot` or `splot` and executes the modified
  1142.  command.
  1143.  
  1144.  Much of the general information about plotting can be found in the discussion
  1145.  of `plot`; information specific to 3-d can be found in the `splot` section.
  1146.  
  1147.  `plot` operates in either rectangular or polar coordinates -- see `set polar`
  1148.  for details of the latter.  `splot` operates only in rectangular coordinates,
  1149.  but the `set mapping` command allows for a few other coordinate systems to be
  1150.  treated.  In addition, the `using` option allows both `plot` and `splot` to
  1151.  treat almost any coordinate system you'd care to define.
  1152.  
  1153.  `splot` can plot surfaces and contours in addition to lines.  See `splot
  1154.  datafile` for information about the requisite file structure for both of
  1155.  these; see `set isosamples` for information about defining the grid for a 3-d
  1156.  function.  See `set contour` and `set cntrparam` for information about
  1157.  contours.
  1158. 2 Start-up
  1159. ?startup
  1160. ?start
  1161. ?.gnuplot
  1162.  When `gnuplot` is run, it looks for an initialization file to load.  This
  1163.  file is called `.gnuplot` on Unix and AmigaDOS systems, and `GNUPLOT.INI`
  1164.  on other systems.  If this file is not found in the current directory, the
  1165.  program will look for it in the home directory (under AmigaDOS,
  1166.  Atari(single)TOS, MS-DOS and OS/2, the environment variable `gnuplot` should
  1167.  contain the name of this directory).  Note: if NOCWDRC is defined during the
  1168.  installation, `gnuplot` will not read from the current directory.
  1169.  
  1170.  If the initialization file is found, `gnuplot` executes the commands in it.
  1171.  These may be any legal `gnuplot` commands, but typically they are limited to
  1172.  setting the terminal and defining frequently-used functions or variables.
  1173. 2 Substitution
  1174. ?substitution
  1175.  Command-line substitution is specified by a system command enclosed in
  1176.  backquotes.  This command is spawned and the output it produces replaces
  1177.  the name of the command (and backquotes) on the command line.
  1178.  
  1179.  Newlines in the output produced by the spawned command are replaced with
  1180.  blanks.
  1181.  
  1182.  Command-line substitution can be used anywhere on the `gnuplot` command
  1183.  line.
  1184.  
  1185.  Example:
  1186.  
  1187.  This will run the program `leastsq` and replace `leastsq` (including
  1188.  backquotes) on the command line with its output:
  1189.        f(x) = `leastsq`
  1190.  
  1191.  or, in VMS
  1192.        f(x) = `run leastsq`
  1193. 2 Syntax
  1194. ?syntax
  1195. ?specify
  1196. ?punctuation
  1197.  The general rules of syntax and punctuation in `gnuplot` are that keywords
  1198.  and options are order-dependent.  Options and any accompanying parameters are
  1199.  separated by spaces whereas lists and coordinates are separated by commas.
  1200.  Ranges are separated by colons and enclosed in braces [], text and file names
  1201.  are enclosed in quotes, and a few miscellaneous things are enclosed in
  1202.  parentheses.  Brackets {} are used for a few special purposes.
  1203.  
  1204.  Commas are used to separate coordinates on the `set` commands `arrow`,
  1205.  `key`, and `label`; the list of variables being fitted (the list after the
  1206.  `via` keyword on the `fit` command); lists of discrete contours or the loop
  1207.  parameters which specify them on the `set cntrparam` command; the arguments
  1208.  of the `set` commands `dgrid3d`, `dummy`, `isosamples`, `offsets`, `origin`,
  1209.  `samples`, `size`, `time`, and `view`; lists of tics or the loop parameters
  1210.  which specify them; the offsets for titles and axis labels; parametric
  1211.  functions to be used to calculate the x, y, and z coordinates on the `plot`,
  1212.  `replot` and `splot` commands; and the complete sets of keywords specifying
  1213.  individual plots (data sets or functions) on the `plot`, `replot` and `splot`
  1214.  commands.
  1215.  
  1216.  Parentheses are used to delimit sets of explicit tics (as opposed to loop
  1217.  parameters) and to indicate computations in the `using` filter of the `fit`,
  1218.  `plot`, `replot` and `splot` commands.
  1219.  
  1220.  (Parentheses and commas are also used as usual in function notation.)
  1221.  
  1222.  Braces are used to delimit ranges, whether they are given on `set`, `plot` or
  1223.  `splot` commands.
  1224.  
  1225.  Colons are used to separate extrema in `range` specifications (whether they
  1226.  are given on `set`, `plot` or `splot` commands) and to separate entries in
  1227.  the `using` filter of the `plot`, `replot`, `splot` and `fit` commands.
  1228.  
  1229.  Semicolons are used to separate commands given on a single command line.
  1230.  
  1231.  Brackets are used in text to be specially processed by some terminals, like
  1232.  `postscript`.  They are also used to denote complex numbers: {3,2} = 3 + 2i.
  1233.  
  1234.  Text may be enclosed in single- or double-quotes.  Backslash processing of
  1235.  sequences like \n (newline) and \345 (octal character code) is performed for
  1236.  double-quoted strings, but not for single-quoted strings.
  1237.  
  1238.  The justification is the same for each line of a multi-line string.  Thus the
  1239.  center-justified string
  1240.        "This is the first line of text.\nThis is the second line."
  1241.  will produce
  1242.                         This is the first line of text.
  1243.                            This is the second line.
  1244.  but
  1245.        'This is the first line of text.\nThis is the second line.'
  1246.  will produce
  1247.            This is the first line of text.\nThis is the second line.
  1248.  
  1249.  At present you should not embed \n inside {} when using the enhanced option
  1250.  of the postscript terminal.
  1251.  
  1252.  The EEPIC, Imagen, Uniplex, LaTeX, and TPIC drivers allow a newline to be
  1253.  specified by \\ in a single-quoted string or \\\\ in a double-quoted string.
  1254.  
  1255.  Back-quotes are used to enclose system commands for substitution.
  1256. 2 Time/Date data
  1257. ?time/date
  1258.  `gnuplot` supports the use of time and/or date information as input data.
  1259.  This feature is activated by the commands `set xdata time`, `set ydata time`,
  1260.  etc.
  1261.  
  1262.  Internally all times and dates are converted to the number of seconds from
  1263.  the year 2000.  The command `set timefmt` defines the format for all inputs:
  1264.  data files, ranges, tics, label positions---in short, anything that accepts a
  1265.  data value must receive it in this format.  Since only one input format can
  1266.  be in force at a given time, all time/date quantities being input at the same
  1267.  time must be presented in the same format.  Thus if both x and y data in a
  1268.  file are time/date, they must be in the same format.
  1269.  
  1270.  Commands like `show xrange` will re-interpret the integer according to
  1271.  `timefmt`.  If you change `timefmt`, and then `show` the quantity again, it
  1272.  will be displayed in the new `timefmt`.  For that matter, if you give the
  1273.  deactivation command (like `set xdata`), the quantity will be shown in its
  1274.  numerical form.
  1275.  
  1276.  The command `set format` defines the format that will be used for tic labels,
  1277.  whether or not the specified axis is time/date.
  1278.  
  1279.  If time/date information is to be plotted from a file, the `using` option
  1280.  _must_ be used on the `plot` or `splot` command.  These commands simply use
  1281.  white space to separate columns, but white space may be embedded within the
  1282.  time/date string.  If you use tabs as a separator, some trial-and-error may
  1283.  be necessary to discover how your system treats them.
  1284.  
  1285.  The following example demonstrates time/date plotting.
  1286.  
  1287.  Suppose the file "data" contains records like
  1288.  
  1289.        03/21/95 10:00  6.02e23
  1290.  
  1291.  This file can be plotted by
  1292.  
  1293.        set xdata time
  1294.        set timefmt "%m/%d"
  1295.        set xrange ["03/21":"03/22"]
  1296.        set format x "%m/%d"
  1297.        set timefmt "%m/%d/%y %H:%M"
  1298.        plot "data" using 1:3
  1299.  
  1300.  which will produce xtic labels that look like "03/21".
  1301.  
  1302.  See the descriptions of each command for more details.
  1303. 1 Commands
  1304. ?commands
  1305. 2 cd
  1306. ?cd
  1307.  The `cd` command changes the working directory.
  1308.  
  1309.  Syntax:
  1310.        cd '<directory-name>'
  1311.  
  1312.  The directory name must be enclosed in quotes.
  1313.  
  1314.  Examples:
  1315.        cd 'subdir'
  1316.        cd ".."
  1317.  
  1318.  DOS users _must_ use single-quotes---backslash [\] has special significance
  1319.  inside double-quotes.  For example,
  1320.        cd "c:\newdata"
  1321.  fails, but
  1322.        cd 'c:\newdata'
  1323.  works as expected.
  1324. 2 call
  1325. ?call
  1326.  The `call` command is identical to the load command with one exception: you
  1327.  can have up to ten additional parameters to the command (delimited according
  1328.  to the standard parser rules) which can be substituted into the lines read
  1329.  from the file.  As each line is read from the `call`ed input file, it is
  1330.  scanned for the sequence `$` (dollar-sign) followed by a digit (0--9).  If
  1331.  found, the sequence is replaced by the corresponding parameter from the
  1332.  `call` command line.  If the parameter was specified as a string in the
  1333.  `call` line, it is substituted without its enclosing quotes.  `$` followed by
  1334.  any character other than a digit will be that character.  E.g. use `$$` to
  1335.  get a single `$`.  Providing more than ten parameters on the `call` command
  1336.  line will cause an error.  A parameter that was not provided substitutes as
  1337.  nothing.  Files being `call`ed may themselves contain `call` or `load`
  1338.  commands.
  1339.  
  1340.  The `call` command _must_ be the last command on a multi-command line.
  1341.  
  1342.  Syntax:
  1343.        call "<input-file>" <parameter-0> <parm-1> ... <parm-9>
  1344.  
  1345.  The name of the input file must be enclosed in quotes, and it is recommended
  1346.  that parameters are similarly enclosed in quotes (future versions of gnuplot
  1347.  may treat quoted and unquoted arguments differently).
  1348.  
  1349.  Example:
  1350.  
  1351.  If the file 'calltest.gp' contains the line:
  1352.        print "p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"
  1353.  
  1354.  entering the command:
  1355.        call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"
  1356.  
  1357.  will display:
  1358.        p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx
  1359.  
  1360.  NOTE: there is a clash in syntax with the datafile `using` callback
  1361.  operator.  Use `$$n` or `column(n)` to access column n from a datafile inside
  1362.  a `call`ed datafile plot.
  1363. 2 clear
  1364. ?clear
  1365.  The `clear` command erases the current screen or output device as specified
  1366.  by `set output`.  This usually generates a formfeed on hardcopy devices.  Use
  1367.  `set terminal` to set the device type.
  1368.  
  1369.  For some terminals `clear` erases only the portion of the plotting surface
  1370.  defined by `set size`, so for these it can be used in conjunction with `set
  1371.  multiplot` to create an inset.
  1372.  
  1373.  Example:
  1374.        set multiplot
  1375.        plot sin(x)
  1376.        set origin 0.5,0.5
  1377.        set size 0.4,0.4
  1378.        clear
  1379.        plot cos(x)
  1380.        set nomultiplot
  1381.  
  1382.  Please see `set multiplot`, `set size`, and `set origin` for details of these
  1383.  commands.
  1384. 2 exit
  1385. ?exit
  1386. ?quit
  1387.  The commands `exit` and `quit` and the END-OF-FILE character will exit
  1388.  `gnuplot`.  Each of these commands will clear the output device (as does
  1389.  the `clear` command) before exiting.
  1390. 2 fit
  1391. ?fit
  1392.  This implementation incorporates the capability of nonlinear least squares
  1393.  fitting using the Marquardt-Levenberg Algorithm.  It may fit any user-defined
  1394.  function to any set of data points (x,y) or (x,y,z).  x, y, z and the
  1395.  function's return type _must_ be real!  Any variable occurring in the
  1396.  function body may serve as a fit parameter (fitting functions without
  1397.  adjustable parameters make no sense).
  1398.  
  1399.  Syntax:
  1400.        fit {[xrange]} {[yrange]} <function>
  1401.            '<datafile>' {datafile-modifiers}
  1402.             via {'<parameter file>' | <var1>,<var2>,...}
  1403.  
  1404.  Notice that `via` is now a required keyword, to distinguish it from a 'scanf'
  1405.  format string.
  1406.  
  1407.  [xrange] and [yrange] are of the form [{variable=}{<min>}{:<max>}], allowing
  1408.  the range of the fit to be limited temporarily in a manner analogous to
  1409.  `plot`.  <function> is any valid `gnuplot` expression, although it is usual
  1410.  to use a previously user-defined function of the form f(x) or f(x,y).
  1411.  <datafile> is treated as in the `plot` command.  All the modifiers for
  1412.  datafiles (`using`, `every`,...) in `plot` are available here (except
  1413.  `smooth`)---see `plot datafile` for full details.  The default columns for x
  1414.  and y are 1 and 2.  These may be changed by the `using x:y` mechanism.  If
  1415.  `using` has a third entry (a column or an expression), it will be interpreted
  1416.  as the standard deviation of each y value and will be used to compute the
  1417.  weight; otherwise all data will be weighted equally.  If four columns are
  1418.  specified, they are x:y:z:error---note that an error _must_ be specified in
  1419.  order to perform a 3-d fit.  If errors are not available, a constant value
  1420.  can be specified, e.g., `using ...:(1)`.
  1421.  
  1422.  Initial values for the parameters to be fit may be specified in a (load-)file
  1423.  wherein each line is of the form:
  1424.  
  1425.        varname = value
  1426.  
  1427.  Comments, marked by '#', and blank lines are permissible.  The special form
  1428.  
  1429.        varname = value       # FIXED
  1430.  
  1431.  means that the variable is treated as a `fixed parameter` that is initialized
  1432.  but will not be adjusted.  It is not necessary (but sometimes useful for
  1433.  clarity) to specify them at all.  The keyword `# FIXED` has to appear in
  1434.  exactly this form.
  1435.  
  1436.  The other means of specifying the adjustable parameters is to provide a
  1437.  comma-separated list of variable names after the `via` keyword.  If any of
  1438.  these variables do not yet exist within the current `gnuplot` session, they
  1439.  are created with an initial value of 1.0, but the fit is more likely to
  1440.  converge if a more appropriate starting value is given.  If this form is
  1441.  used, it may prove beneficial to iterate the fit, allowing only one or two
  1442.  variables to be adjusted at a time until a reasonably close fit is obtained,
  1443.  before allowing `fit` to vary all parameters.
  1444.  
  1445.  After each iteration step, detailed information is given about the fit's
  1446.  state, both on the screen and on a logfile "fit.log".  This file will never be
  1447.  erased but always appended to so that the fit's history isn't lost.  After
  1448.  each iteration step, the fit may be interrupted by pressing Ctrl-C (any key
  1449.  _but_ Ctrl-C under MSDOS and Atari Multitasking Systems).  Then you have the
  1450.  options of stopping (and accepting the current parameter values), continuing
  1451.  the iteration of the fit, or executing a `gnuplot` command specified by an
  1452.  environment variable FIT_SCRIPT.  A `plot` or `load` command may be useful in
  1453.  this context.
  1454.  
  1455.  Special `gnuplot` variables:
  1456.  
  1457.        FIT_LIMIT
  1458.  may be specified to change the default epsilon limit (1e-5).  When the sum
  1459.  of squared residuals changes between two iteration steps by less than a
  1460.  factor of this number, the fit is considered to have 'converged'.
  1461.  
  1462.  Once the fit is converged, the final values may be stored in (load-)file
  1463.  suitable for use as an initial-value file, as discussed above.  Please see
  1464.  `update` for details.
  1465.  
  1466.        FIT_MAXITER
  1467.  may be specified to limit the number of iterations performed without
  1468.  convergence by FIT_LIMIT.  A value of 0 (or not defining it at all) means
  1469.  that there is no limit.
  1470.  
  1471.  [FIT_SKIP was available in previous releases of gnufit.  Its functionality
  1472.  is now obtained using the `every` modifier for datafiles.  FIT_INDEX was
  1473.  previously available in order to allow multi-branch fitting.  Multi-branch
  1474.  fitting in 2-d can now be done as a pseudo-3-d fit in which the y values are
  1475.  the dataline number (`using 1:-1:...`) or index (`using 1:-2:...`).]
  1476.  
  1477.  Environment variables:
  1478.  
  1479.        FIT_LOG
  1480.  changes the logfile's path from './fit.log' (write permission is necessary).
  1481.  
  1482.        FIT_SCRIPT
  1483.  specifies a command to be executed after an user interrupt.
  1484.  
  1485.  Examples:
  1486.        f(x) = a*x**2 + b*x + c
  1487.        FIT_LIMIT = 1e-6
  1488.        fit f(x) 'measured.dat' via 'start.par'
  1489.        fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
  1490.        fit f(x) './data/trash.dat' using 1:2:3 via a, b, c
  1491.        fit f(x,y) 'surface.dat' using 1:2:3:(1) via a, b, c
  1492. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/fit/fit.html"> See the `fit` demos. </a>
  1493. 3 Introduction To Fitting
  1494. ?fit introduction
  1495.  Beginner's guide to fitting in general
  1496.  
  1497.  `fit` is used to find a set of parameters to be used in a parametric function
  1498.  to make it fit to your data optimally.  The quantity to be minimized is the
  1499.  sum of squared differences between your input data points and the function
  1500.  values at the same places, usually called 'chisquared' (i.e. the Greek letter
  1501.  chi, to the power of 2).  (To be precise, the differences will be divided by
  1502.  the input data errors before being squared; see `fit errors` for details.)
  1503.  
  1504.  Now that you know why it's called 'least squares fitting', let's see why it's
  1505.  'nonlinear'.  That's because the function's dependence on the parameters (not
  1506.  the data!) may be non-linear.  Of course, this might not tell you much if you
  1507.  didn't know already, so let me try to describe it.  If the fitting problem
  1508.  were to be linear, the target function would have to be a sum of simple,
  1509.  non-parametric functions, each multiplied by one parameter.  (For example,
  1510.  consider the function f(x) = c*sin(x), where we want to find the best value
  1511.  for the constant c.  This is nonlinear in x, of course, but it is linear in
  1512.  c.  Since the fitting procedure solves for c, it has a linear equation to
  1513.  solve.)  For such a linear case, the task of fitting can be performed by
  1514.  comparatively simple linear algebra in one direct step.  But `fit` can do
  1515.  more for you:  the parameters may be used in your function in any way you can
  1516.  imagine.  To handle this more general case, however, it has to perform an
  1517.  iteration, i.e. it will repeat a sequence of steps until it finds the fit to
  1518.  have 'converged', or until you stop it.
  1519.  
  1520.  Generally, the function to be fitted will come from some kind of theory (some
  1521.  prefer the term 'model' here) that makes a prediction about how the data
  1522.  should behave, and `fit` is then used to find the free parameters of the
  1523.  theory.  This is a typical task in scientific work, where you have lots of
  1524.  data that depend in more or less complicated ways on the values you're
  1525.  interested in.  The results will then usually be of the form 'the measured
  1526.  data can be described by the {foo} theory, for the following set of
  1527.  parameters', and then a set of values is given, together with the errors of
  1528.  your determination of these values.
  1529.  
  1530.  This reasoning implies that `fit` is probably _not_ your tool of choice if
  1531.  all you really want is a smooth line through your data points.  If you want
  1532.  this, the `smooth` option to `plot` is what you've been looking for, not
  1533.  `fit`.  See `plot datafile smooth` for details.
  1534. 3 Errors In Fitting
  1535. ?fit errors
  1536.  One of the most important things to keep in mind when using `fit` is the
  1537.  handling of errors.  Here, this term refers to the measurement errors
  1538.  accompanying both your input data and resulting parameters.
  1539.  
  1540.  The reason for the importance of input data errors to fitting is that
  1541.  normally the single measurements aren't all of the same quality, so they
  1542.  shouldn't have the same importance in determining the results.  That's one
  1543.  major reason for dividing the differences between data and function by the
  1544.  input errors, also known as 'weighting', in the computation of chisquared.
  1545.  
  1546.  By weighting, deviations from your function at places where the data have
  1547.  large errors will have a smaller part in chisquared, as the division will
  1548.  make them smaller compared to the better measurements.  Another reason for
  1549.  the division is that, for mathematical reasons, chisquared has to be a
  1550.  dimensionless variable, i.e. chisquared should be something like '15.3', not
  1551.  '15.3 square seconds'.
  1552.  
  1553.  Without input data errors being given, all data will be weighted equally, and
  1554.  the resulting errors of the parameters won't have much of a real meaning.
  1555.  Therefore, you should always try to find a sensible set of y-errors for your
  1556.  data.  An important example is that of data representing a histogram.  In
  1557.  such a case, the square root of the y value is often the correct input error
  1558.  to use.
  1559.  
  1560.  Once the fit iteration has stopped, it will display a load of valuable
  1561.  information which you will have to learn to interpret before you can use it.
  1562.  The 'sum of squares residuals' is the distance between the data and your fit
  1563.  function, shortly called 'chisquared'.  This is what `fit` tries to minimize.
  1564.  To quickly test if your fit went well, check that this is about the same as
  1565.  the number of data points minus the number of parameters (all this is only
  1566.  valid if you supplied y-errors, and the number of data points is large
  1567.  enough).  For details on this, look up the 'Chi-squared distribution' in your
  1568.  favourite statistics textbook.
  1569.  
  1570.  If chisquared is much larger than that, then your function didn't fit the
  1571.  data very well.  Try another, more general one, or allow more of the
  1572.  parameters to be adjusted by `fit`.  Another possible reason could be that
  1573.  the y-errors you supplied were a bit optimistic, i.e. too small.
  1574.  
  1575.  If, on the other hand, chisquared is too small, then the function fit the
  1576.  data _too_ well.  Either the given y-errors were too large, or the function
  1577.  is too general.  You should try to restrict it by either fixing some
  1578.  parameters, or just make it simpler one way or the other.
  1579.  
  1580.  If all else went well, you'll see a list of the resulting parameter values,
  1581.  together with estimates of the errors of these values.  And you should
  1582.  always be aware of this:  they're _estimates_, not more.  You'll have to get
  1583.  used to both `fit` and kind of problems you usually apply it to before you
  1584.  can use these errors for anything serious.  To start with, the errors
  1585.  reported by `fit` are insensitive to the global scale of the y-errors, i.e.
  1586.  if you multiply all y-errors by a constant, the resulting parameter errors
  1587.  don't change.
  1588.  
  1589.  And, to repeat this once more: if you didn't supply y-errors, the parameter
  1590.  errors will normally be meaningless.
  1591.  
  1592. 3 Tips and Tricks
  1593. ?fit tips
  1594.  Here are some tips to keep in mind to get the most out of `fit`.  They're not
  1595.  very organized, so you'll have to read them several times until their essence
  1596.  has sunk in.
  1597.  
  1598.  The two forms of the `via` argument to `fit` serve two largely distinct
  1599.  purposes.  The `via "file"` form is best used for batch operation (possibly
  1600.  unattended), where you just supply the startup values in a file and perhaps
  1601.  later use `update` to copy the results back into another file (or the same
  1602.  one).
  1603.  
  1604.  The `via var1, var2, ...` form is best used interactively.  Using the command
  1605.  history mechanism built into gnuplot, you can easily edit the list of
  1606.  parameters to be fitted or supply new startup values for the next try.  This
  1607.  is particularly useful for hard problems, where a direct fit to all the
  1608.  parameters at once won't work, at least not without really _good_ values to
  1609.  start with.  To find such a set of good starting parameters, you can iterate
  1610.  several times, fitting only some of the parameters each time, until the
  1611.  values are close enough to the goal that the final fit (to all the
  1612.  parameters at once) will work.
  1613.  
  1614.  A general word about starting values:  `fit` may, and often will, get really
  1615.  badly lost in searching for the optimal parameter set if you start it way off
  1616.  any possible solution.  The main reason for this is that nonlinear fitting is
  1617.  not guaranteed to converge to a global optimum.  It can get stuck in a local
  1618.  optimum, and there's no way for the routine to find out about that.  You'll
  1619.  have to use your own judgement in checking whether this has happened to you
  1620.  or not.
  1621.  
  1622.  To partly avoid that problem, you should put all starting values at least
  1623.  roughly into the vicinity of the solution.  At least the order of magnitude
  1624.  should be correct, if possible.  The better your starting values are, the
  1625.  less error-prone the fit.  A good way to find starting values is to draw data
  1626.  and fit-function into one plot, and iterate, changing the values and
  1627.  `replot`-ting until reasonable similarity is reached.  The same plot is also
  1628.  useful to check if the fit got stuck in a non-global minimum.
  1629.  
  1630.  Make sure that there is no mutual dependency among parameters of the function
  1631.  you are fitting.  E.g., don't try to fit a*exp(x+b), because a*exp(x+b) =
  1632.  a*exp(b)*exp(x).  Instead, fit either a*exp(x) or exp(x+b).
  1633.  
  1634.  A technical issue:  the parameters must not be too different in magnitude.
  1635.  The larger the quotient of the largest and the smallest absolute parameter
  1636.  values, the slower the fit will converge.  If the quotient is close to or
  1637.  above the inverse of the machine floating point precision, it may take next
  1638.  to forever to converge, or refuse to converge at all.  You'll have to adapt
  1639.  your function to avoid this, e.g. replace 'parameter' by '1e9*parameter' in
  1640.  the function definition, and divide the starting value by 1e9.
  1641.  
  1642.  If you can write your function as a linear combination of simple functions
  1643.  weighted by the parameters to be fitted, by all means do so.  That helps a
  1644.  lot, because the problem is then not nonlinear any more.  It should take only
  1645.  a really small number of iterations to converge on a linear case, maybe even
  1646.  only one.
  1647.  
  1648.  In prescriptions for analysing data from practical experimentation courses,
  1649.  you'll often find descriptions how to first fit your data to some functions,
  1650.  maybe in a multi-step process accounting for several aspects of the
  1651.  underlying theory one by one, and then extract the data you really wanted
  1652.  from the fitting parameters of that function.  With `fit`, this last step can
  1653.  often be eliminated by rewriting the model function to directly use the
  1654.  desired final parameters.  Transforming data can also be avoided quite often,
  1655.  although sometimes at the cost of a harder fit problem.  If you think this
  1656.  contradicts the previous paragraph about keeping the fit function as simple
  1657.  as possible, you're correct.
  1658.  
  1659.  Finally, a nice quote from the manual of another fitting package (fudgit)
  1660.  that kind of summarizes all these issues:  "Nonlinear fitting is an art!"
  1661. 2 help
  1662. ?help
  1663.  The `help` command displays on-line help. To specify information on a
  1664.  particular topic use the syntax:
  1665.  
  1666.        help {<topic>}
  1667.  
  1668.  If <topic> is not specified, a short message is printed about `gnuplot`.
  1669.  After help for the requested topic is given, a menu of subtopics is given;
  1670.  help for a subtopic may be requested by typing its name, extending the help
  1671.  request.  After that subtopic has been printed, the request may be extended
  1672.  again or you may go back one level to the previous topic.  Eventually, the
  1673.  `gnuplot` command line will return.
  1674.  
  1675.  If a question mark (?) is given as the topic, the list of topics currently
  1676.  available is printed on the screen.
  1677. 2 if
  1678. ?if
  1679.  The `if` command allows commands to be executed conditionally.
  1680.  
  1681.  Syntax:
  1682.        if (<condition>) <command-line>
  1683.  
  1684.  <condition> will be evaluated.  If it is true (non-zero), then the command(s)
  1685.  of the <command-line> will be executed.  If <condition> is false (zero), then
  1686.  the entire <command-line> is ignored.  Note that use of `;` to allow multiple
  1687.  commands on the same line will _not_ end the conditionalized commands.
  1688.  
  1689.  Examples:
  1690.        pi=3
  1691.        if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi
  1692.  will display:
  1693.        ?Fixing pi!
  1694.        3.14159265358979
  1695.  but
  1696.        if (1==2) print "Never see this"; print "Or this either"
  1697.  will not display anything.
  1698.  
  1699.  See `reread` for an example of how `if` and `reread` can be used together to
  1700.  perform a loop.
  1701. 2 load
  1702. ?load
  1703.  The `load` command executes each line of the specified input file as if it
  1704.  had been typed in interactively.  Files created by the `save` command can
  1705.  later be `load`ed.  Any text file containing valid commands can be created
  1706.  and then executed by the `load` command.  Files being `load`ed may themselves
  1707.  contain `load` or `call` commands.  See `comment` for information about
  1708.  comments in commands.
  1709.  
  1710.  The `load` command _must_ be the last command on a multi-command line.
  1711.  
  1712.  Syntax:
  1713.        load "<input-file>"
  1714.  
  1715.  The name of the input file must be enclosed in quotes.
  1716.  
  1717.  Examples:
  1718.        load 'work.gnu'
  1719.        load "func.dat"
  1720.  
  1721.  The `load` command is performed implicitly on any file names given as
  1722.  arguments to `gnuplot`.  These are loaded in the order specified, and
  1723.  then `gnuplot` exits.  See also `call`.
  1724. 2 pause
  1725. ?pause
  1726.  The `pause` command displays any text associated with the command and then
  1727.  waits a specified amount of time or until the carriage return is pressed.
  1728.  `pause` is especially useful in conjunction with `load` files.
  1729.  
  1730.  Syntax:
  1731.        pause <time> {"<string>"}
  1732.  
  1733.  <time> may be any integer constant or expression.  Choosing -1 will wait
  1734.  until a carriage return is hit, zero (0) won't pause at all, and a positive
  1735.  integer will wait the specified number of seconds.  `pause 0` is synonymous
  1736.  with `print`.
  1737.  
  1738.  Note: Since `pause` communicates with the operating system rather than the
  1739.  graphics, it may behave differently with different device drivers (depending
  1740.  upon how text and graphics are mixed).
  1741.  
  1742.  Examples:
  1743.        pause -1    # Wait until a carriage return is hit
  1744.        pause 3     # Wait three seconds
  1745.        pause -1  "Hit return to continue"
  1746.        pause 10  "Isn't this pretty?  It's a cubic spline."
  1747.  
  1748. 2 plot
  1749. ?plot
  1750.  `plot` is the primary command for drawing plots with `gnuplot`.  It creates
  1751.  plots of functions and data in many, many ways.  `plot` is used to draw 2-d
  1752.  functions and data; `splot` draws 2-d projections of 3-d surfaces and data.
  1753.  `plot` and `splot` contain many common features; see `splot` for differences.
  1754.  
  1755.  Syntax:
  1756.        plot {<ranges>}
  1757.             {<function> | {"<datafile>" {datafile-modifiers}}}
  1758.             {axes <axes>} {<title-spec>} {with <style>}
  1759.             {, {definitions,} <function> ...}
  1760.  
  1761.  where either a <function> or the name of a data file enclosed in quotes is
  1762.  supplied.  A function is a mathematical expression or a pair of mathematical
  1763.  expressions in parametric mode.  The expressions may be defined completely or
  1764.  in part earlier in the stream of `gnuplot` commands (see `user-defined`).
  1765.  
  1766.  It is also possible to define functions and parameters on the `plot` command
  1767.  itself.  This is done merely by isolating them from other items with commas.
  1768.  
  1769.  There are four possible sets of axes available; the keyword <axes> is used to
  1770.  select the axes for which a particular line should be scaled.  `x1y1` refers
  1771.  to the axes on the bottom and left; `x2y2` to those on the top and right;
  1772.  `x1y2` to those on the bottom and right; and `x2y1` to those on the top and
  1773.  left.  Ranges specified on the `plot` command apply only to the first set of
  1774.  axes (bottom left).
  1775.  
  1776.  Examples:
  1777.        plot sin(x)
  1778.        plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
  1779.        plot [t=1:10] [-pi:pi*2] tan(t), \
  1780.             "data.1" using (tan($2)):($3/$4) smooth csplines \
  1781.                      axes x1y2 notitle with lines 5
  1782.  
  1783. 3 data-file
  1784. ?plot data-file
  1785. ?plot datafile
  1786. ?data-file
  1787. ?datafile
  1788. ?data
  1789.  Discrete data contained in a file can be displayed by specifying the name of
  1790.  the data file (enclosed in quotes) on the `plot` or `splot` command line.
  1791.  
  1792.  Syntax:
  1793.        {s}plot '<file_name>' {index <index list>}
  1794.                              {every <every list>}
  1795.                              {thru <thru expression>}
  1796.                              {using <using list>}
  1797.                              {smooth <option>}
  1798.  
  1799.  The modifiers `index`, `every`, `thru`, `using`, and `smooth` are discussed
  1800.  separately.  In brief, `index` selects which data sets in a multi-data-set
  1801.  file are to be plotted, `every` specifies which points within a single data
  1802.  set are to be plotted, `using` determines how the columns within a single
  1803.  record are to be interpreted (`thru` is a special case of `using`), and
  1804.  `smooth` allows for simple interpolation and approximation.
  1805.  
  1806.  Data files should contain one data point per record.  Records beginning with
  1807.  # (or ! on VMS) will be treated as comments and ignored.  Each data point
  1808.  represents an (x,y) pair.  For `plot`s with error bars (see `set style
  1809.  errorbars`), each data point is (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta),
  1810.  (x,y,xlow,xhigh), or (x,y,xlow,xhigh,ylow,yhigh).  In all cases, the numbers
  1811.  on each record of a data file must be separated by white space (one or more
  1812.  blanks or tabs), unless a format specifier is provided by the `using` option.
  1813.  This white space divides each record into columns.
  1814.  
  1815.  Data may be written in exponential format with the exponent preceded by the
  1816.  letter e, E, d, D, q, or Q.
  1817.  
  1818.  Only one column (the y value) need be provided.  If x is omitted, `gnuplot`
  1819.  provides integer values starting at 0.
  1820.  
  1821.  In datafiles, blank records (records with no characters other than blanks and
  1822.  a newline and/or carriage return) are significant---pairs of blank records
  1823.  separate `index`es (see `plot datafile index`).  Data separated by double
  1824.  blank records are treated as if they were in separate data files.
  1825.  
  1826.  Single blank records designate discontinuities in a `plot`; no line will join
  1827.  points separated by a blank records (if they are plotted with a line style).
  1828.  
  1829.  If autoscaling has been enabled (`set autoscale`), the axes are automatically
  1830.  extended to include all datapoints, with a whole number of tic marks if tics
  1831.  are being drawn.  This has two consequences: i) For `splot`, the corner of
  1832.  the surface may not coincide with the corner of the base.  In this case, no
  1833.  vertical line is drawn.  ii) When plotting data with the same x range on a
  1834.  dual-axis graph, the x coordinates may not coincide if the x2tics are not
  1835.  being drawn.  This is because the x axis has been autoextended to a whole
  1836.  number of tics, but the x2 axis has not.  The following example illustrates
  1837.  the problem:
  1838.  
  1839.        reset; plot '-', '-'
  1840.        1 1
  1841.        19 19
  1842.        e
  1843.        1 1
  1844.        19 19
  1845.        e
  1846. 4 every
  1847. ?plot data-file every
  1848. ?plot datafile every
  1849. ?plot every
  1850. ?data-file every
  1851. ?datafile every
  1852. ?every
  1853.  The `every` keyword allows a periodic sampling of a data set to be plotted.
  1854.  
  1855.  In the discussion a "point" is a datum defined by a single record in the
  1856.  file.
  1857.  
  1858.  Syntax:
  1859.        plot 'file' every {<point_incr>}
  1860.                            {:{<line_incr>}
  1861.                              {:{<start_point>}
  1862.                                {:{<start_line>}
  1863.                                  {:{<end_point>}
  1864.                                    {:<end_line>}}}}}
  1865.  
  1866.  The data points to be plotted are selected according to a loop from
  1867.  <`start_point`> to <`end_point`> with increment <`point_incr`> and the
  1868.  datalines according to a loop from <`start_line`> to <`end_line`> with
  1869.  increment <`line_incr`>.
  1870.  
  1871.  The first datum in each dataline is numbered '0', as is the first dataline in
  1872.  the file.
  1873.  
  1874.  Note that records containing unplottable information are counted.
  1875.  
  1876.  Any of the numbers can be omitted; the increments default to unity, the start
  1877.  values to the first point or dataline, and the end values to the last point
  1878.  or dataline.  If `every` is not specified, all points in all datalines are
  1879.  plotted.
  1880.  
  1881.  Examples:
  1882.        every :::3::3    # selects just the fourth dataline ('0' is first)
  1883.        every :::::9     # selects the first 10 datalines
  1884.        every 2:2        # selects every other point in every other dataline
  1885.        every ::5::15    # selects points 5 through 15 in each dataline
  1886. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/simple/simple.html">Simple Plot Demos </a>,
  1887. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/surfacea/surfacea.html">Non-parametric splot demos </a>, and
  1888. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/surfaceb/surfaceb.html">Parametric splot demos.</a>
  1889. 4 example datafile
  1890. ?plot data-file example
  1891. ?plot datafile example
  1892. ?plot example
  1893. ?datafile example
  1894. ?data-file example
  1895. ?example
  1896.  This example compares the data in the file population.dat to a theoretical
  1897.  curve:
  1898.  
  1899.        pop(x) = 103*exp((1965-x)/10)
  1900.        plot [1960:1990] 'population.dat', pop(x)
  1901.  
  1902.  The file "population.dat" might contain:
  1903.  
  1904.        # Gnu population in Antarctica since 1965
  1905.           1965   103
  1906.           1970   55
  1907.           1975   34
  1908.           1980   24
  1909.           1985   10
  1910.  
  1911. ^ <img align=bottom src="http://www.nas.nasa.gov/~woo/gnuplot/doc/population.gif" alt="[population.gif]" width=640 height=480>
  1912. 4 index
  1913. ?plot data-file index
  1914. ?plot datafile index
  1915. ?plot index
  1916. ?data-file index
  1917. ?datafile index
  1918. ?index
  1919.  The `index` keyword allows only some of the data sets in a multi-data-set
  1920.  file to be plotted.
  1921.  
  1922.  Syntax:
  1923.        plot 'file' index <m>{{:<n>}:<p>}
  1924.  
  1925.  Data sets are separated by pairs of blank records.  `index <m>` selects only
  1926.  set <m>; `index <m>:<n>` selects sets in the range <m> to <n>; and `index
  1927.  <m>:<n>:<p>` selects indices <m>, <m>+<p>, <m>+2<p>, etc., but stopping at
  1928.  <n>.  Following C indexing, the index 0 is assigned to the first data set in
  1929.  the file.  Specifying too large an index results in an error message.  If
  1930.  `index` is not specified, all sets are plotted as a single data set.
  1931.  
  1932.  Example:
  1933.        plot 'file' index 4:5
  1934. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/multimsh/multimsh.html"> splot with indices demo. </a>
  1935. 4 smooth
  1936. ?plot data-file smooth
  1937. ?plot datafile smooth
  1938. ?plot smooth
  1939. ?data-file smooth
  1940. ?datafile smooth
  1941. ?smooth
  1942.  `gnuplot` includes a few general-purpose routines for interpolation and
  1943.  approximation of data; these are grouped under the `smooth` option.  More
  1944.  sophisticated data processing may be performed by preprocessing the data
  1945.  externally or by using `fit` with an appropriate model.
  1946.  
  1947.  Syntax:
  1948.        smooth {unique | csplines | acsplines | bezier | sbezier}
  1949.  
  1950.  `unique` plots the data after making them monotonic.  Each of the other
  1951.  routines uses the data to determine the coefficients of a continuous curve
  1952.  between the endpoints of the data.  This curve is then plotted in the same
  1953.  manner as a function, that is, by finding its value at uniform intervals
  1954.  along the abscissa (see `set samples`) and connecting these points with
  1955.  straight line segments (if a line style is chosen).
  1956.  
  1957.  If `autoscale` is in effect, the ranges will be computed such that the
  1958.  plotted curve lies within the borders of the graph.
  1959.  
  1960.  If too few points are available to allow the selected option to be applied,
  1961.  an error message is produced.  The minimum number is one for `unique`, four
  1962.  for `acsplines`, and three for the others.
  1963.  
  1964.  The `smooth` options have no effect on function plots.
  1965. 5 acsplines
  1966. ?plot data-file smooth acsplines
  1967. ?plot datafile smooth acsplines
  1968. ?data-file smooth acsplines
  1969. ?datafile smooth acsplines
  1970. ?plot smooth acsplines
  1971. ?plot acsplines
  1972. ?smooth acsplines
  1973. ?acsplines
  1974.  `acsplines` approximates the data with a "natural smoothing spline".  After
  1975.  the data are made monotonic in x (see `smooth unique`), a curve is piecewise
  1976.  constructed from segments of cubic polynomials whose coefficients are found
  1977.  by the weighting the data points; the weights are taken from the third column
  1978.  in the data file.  That default can be modified by the third entry in the
  1979.  `using` list, e.g.,
  1980.        plot 'data-file' using 1:2:(1.0) smooth acsplines
  1981.  
  1982.  Qualitatively, the absolute magnitude of the weights determines the number
  1983.  of segments used to construct the curve.  If the weights are large, the
  1984.  effect of each datum is large and the curve approaches that produced by
  1985.  connecting consecutive points with natural cubic splines.  If the weights are
  1986.  small, the curve is composed of fewer segments and thus is smoother; the
  1987.  limiting case is the single segment produced by a weighted linear least
  1988.  squares fit to all the data.  The smoothing weight can be expressed in terms
  1989.  of errors as a statistical weight for a point divided by a "smoothing factor"
  1990.  for the curve so that (standard) errors in the file can be used as smoothing
  1991.  weights.
  1992.  
  1993.  Example:
  1994.        sw(x,S)=1/(x*x*S)
  1995.        plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines
  1996. 5 bezier
  1997. ?plot data-file smooth bezier
  1998. ?plot datafile smooth bezier
  1999. ?plot smooth bezier
  2000. ?data-file smooth bezier
  2001. ?dat-file smooth bezier
  2002. ?plot bezier
  2003. ?smooth bezier
  2004. ?bezier
  2005.  The `bezier` option approximates the data with a Bezier curve of degree n
  2006.  (the number of data points) that connects the endpoints.
  2007. 5 csplines
  2008. ?plot data-file smooth csplines
  2009. ?plot datafile smooth csplines
  2010. ?plot smooth csplines
  2011. ?data-file smooth csplines
  2012. ?datafile smooth csplines
  2013. ?plot csplines
  2014. ?smooth csplines
  2015. ?csplines
  2016.  The `csplines` option connects consecutive points by natural cubic splines
  2017.  after rendering the data monotonic (see `smooth unique`).
  2018. 5 sbezier
  2019. ?plot data-file smooth sbezier
  2020. ?plot datafile smooth sbezier
  2021. ?plot smooth sbezier
  2022. ?data-file smooth sbezier
  2023. ?datafile smooth sbezier
  2024. ?plot sbezier
  2025. ?smooth sbezier
  2026. ?sbezier
  2027.  The `sbezier` option first renders the data monotonic (`unique`) and then
  2028.  applies the `bezier` algorithm.
  2029. 5 unique
  2030. ?plot data-file smooth unique
  2031. ?plot datafile smooth unique
  2032. ?plot smooth unique
  2033. ?data-file smooth unique
  2034. ?datafile smooth unique
  2035. ?plot unique
  2036. ?smooth unique
  2037. ?unique
  2038.  The `unique` option makes the data monotonic in x; points with the same
  2039.  x-value are replaced by a single point having the average y-value.  The
  2040.  resulting points are then connected by straight line segments.
  2041. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/mgr/mgr.html"> See demos. </a>
  2042. 4 special-filenames
  2043. ?plot data-file special-filenames
  2044. ?plot datafile special-filenames
  2045. ?plot special-filenames
  2046. ?datafile special-filenames
  2047. ?special-filenames
  2048.  A special filename of `'-'` specifies that the data are inline; i.e., they
  2049.  follow the command.  Only the data follow the command; `plot` options like
  2050.  filters, titles, and line styles remain on the 'plot' command line.  This is
  2051.  similar to << in unix shell script, and $DECK in VMS DCL.  The data are
  2052.  entered as though they are being read from a file, one data point per record.
  2053.  The letter "e" at the start of the first column terminates data entry.  The
  2054.  `using` option can be applied to these data---using it to filter them through
  2055.  a function might make sense, but selecting columns probably doesn't!
  2056.  
  2057.  `'-'` is intended for situations where it is useful to have data and commands
  2058.  together, e.g., when `gnuplot` is run as a sub-process of some front-end
  2059.  application.  Some of the demos, for example, might use this feature.  While
  2060.  `plot` options such as `index` and `every` are recognized, their use forces
  2061.  you to enter data that won't be used.  For example, while
  2062.  
  2063.        plot '-' index 0, '-' index 1
  2064.        2
  2065.        4
  2066.        6
  2067.  
  2068.  
  2069.        10
  2070.        12
  2071.        14
  2072.        e
  2073.        2
  2074.        4
  2075.        6
  2076.  
  2077.  
  2078.        10
  2079.        12
  2080.        14
  2081.        e
  2082.  
  2083.  does indeed work,
  2084.  
  2085.        plot '-', '-'
  2086.        2
  2087.        4
  2088.        6
  2089.        e
  2090.        10
  2091.        12
  2092.        14
  2093.        e
  2094.  
  2095.  is a lot easier to type.
  2096.  
  2097.  If you use `'-'` with `replot`, you may need to enter the data more than once
  2098.  (see `replot`).
  2099.  
  2100.  A blank filename ('') specifies that the previous filename should be reused.
  2101.  This can be useful with things like
  2102.  
  2103.        plot 'a/very/long/filename' using 1:2, '' using 1:3, '' using 1:4
  2104.  
  2105.  (If you use both `'-'` and `''` on the same `plot` command, you'll need to
  2106.  have two sets of inline data, as in the example above.)
  2107.  
  2108.  On some computer systems with a popen function (Unix), the datafile can be
  2109.  piped through a shell command by starting the file name with a '<'.  For
  2110.  example,
  2111.  
  2112.        pop(x) = 103*exp(-x/10)
  2113.        plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
  2114.  
  2115.  would plot the same information as the first population example but with
  2116.  years since 1965 as the x axis.  If you want to execute this example, you
  2117.  have to delete all comments from the data file above or substitute the
  2118.  following command for the first part of the command above (the part up to
  2119.  the comma):
  2120.  
  2121.        plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"
  2122.  
  2123.  While this approach is most flexible, it is possible to achieve simple
  2124.  filtering with the `using` or `thru` keywords.
  2125. 4 thru
  2126. ?plot data-file thru
  2127. ?plot datafile thru
  2128. ?plot thru
  2129. ?data-file thru
  2130. ?datafile thru
  2131. ?thru
  2132.  The `thru` function is provided for backward compatibility.
  2133.  
  2134.  Syntax:
  2135.        plot 'file' thru f(x)
  2136.  
  2137.  It is equivalent to:
  2138.  
  2139.        plot 'file' using 1:(f($2))
  2140.  
  2141.  While the latter appears more complex, it is much more flexible.  The more
  2142.  natural
  2143.  
  2144.        plot 'file' thru f(y)
  2145.  
  2146.  also works (i.e. you can use y as the dummy variable).
  2147.  
  2148.  `thru` is parsed for `splot` and `fit` but has no effect.
  2149. 4 using
  2150. ?plot data-file using
  2151. ?plot datafile using
  2152. ?plot using
  2153. ?data-file using
  2154. ?datafile using
  2155. ?using
  2156.  The most common datafile modifier is `using`.
  2157.  
  2158.  Syntax:
  2159.        plot 'file' using {<entry> {:<entry> {:<entry> ...}}} {'format'}
  2160.  
  2161.  If a format is specified, each datafile record is read using the C library's
  2162.  'scanf' function, with the specified format string.  Otherwise the record is
  2163.  read and broken into columns at spaces or tabs.  A format cannot be specified
  2164.  if time-format data is being used (this must be done by `set data time`).
  2165.  
  2166.  The resulting array of data is then sorted into columns according to the
  2167.  entries.  Each <entry> may be a simple column number, which selects the
  2168.  datum, an expression enclosed in parentheses, or empty.  The expression can
  2169.  use $1 to access the first item read, $2 for the second item, and so on.  It
  2170.  can also use `column(x)` and `valid(x)` where x is an arbitrary expression
  2171.  resulting in an integer.  `column(x)` returns the x'th datum; `valid(x)`
  2172.  tests that the datum in the x'th column is a valid number.  A column number
  2173.  of 0 generates a number increasing (from zero) with each point, and is reset
  2174.  upon encountering two blank records.  A column number of -1 gives the
  2175.  dataline number, which starts at 0, increments at single blank records, and
  2176.  is reset at double blank records.  A column number of -2 gives the index
  2177.  number, which is incremented only when two blank records are found.  An empty
  2178.  <entry> will default to its order in the list of entries.  For example,
  2179.  `using ::4` is interpreted as `using 1:2:4`.
  2180.  
  2181.  N.B.---the `call` command also uses $'s as a special character.  See `call`
  2182.  for details about how to include a column number in a `call` argument list.
  2183.  
  2184.  If the `using` list has but a single entry, that <entry> will be used for y
  2185.  and the data point number is used for x; for example, "`plot 'file' using 1`"
  2186.  is identical to "`plot 'file' using 0:1`".  If the `using` list has two
  2187.  entries, these will be used for x and y.  Additional entries are usually
  2188.  errors in x and/or y.  See `set style` for details about plotting styles that
  2189.  make use of error information, and `fit` for use of error information in
  2190.  curve fitting.
  2191.  
  2192.  'scanf' accepts several numerical specifications but `gnuplot` requires all
  2193.  inputs to be double-precision floating-point variables, so `lf` is the only
  2194.  permissible specifier.  'scanf' expects to see white space---a blank, tab
  2195.  ("\t"), newline ("\n"), or formfeed ("\f")---between numbers; anything else
  2196.  in the input stream must be explicitly skipped.
  2197.  
  2198.  Note that the use of "\t", "\n", or "\f" or requires use of double-quotes
  2199.  rather than single-quotes.
  2200.  
  2201.  Examples:
  2202.  
  2203.  This creates a plot of the sum of the 2nd and 3rd data against the first:
  2204.  (The format string specifies comma- rather than space-separated columns.)
  2205.        plot 'file' using 1:($2+$3) '%lf,%lf,%lf'
  2206.  
  2207.  In this example the data are read from the file "MyData" using a more
  2208.  complicated format:
  2209.        plot "MyData" using "%*lf%lf%*20[^\n]%lf"
  2210.  
  2211.  The meaning of this format is:
  2212.  
  2213.        %*lf        ignore a number
  2214.        %lf         read a double-precision number (x by default)
  2215.        %*20[^\n]   ignore 20 non-newline characters
  2216.        %lf         read a double-precision number (y by default)
  2217.  
  2218.  One trick is to use the ternary `?:` operator to filter data:
  2219.  
  2220.        plot 'file' using 1:($3>10 ? $2 : 1/0)
  2221.  
  2222.  which plots the datum in column two against that in column one provided
  2223.  the datum in column three exceeds ten.  `1/0` is undefined; `gnuplot`
  2224.  quietly ignores undefined points, so unsuitable points are suppressed.
  2225.  
  2226.  In fact, you can use a constant expression for the column number, provided it
  2227.  doesn't start with an opening parenthesis; constructs like `using
  2228.  0+(complicated expression)` can be used.  The crucial point is that the
  2229.  expression is evaluated once if it doesn't start with a left parenthesis, or
  2230.  once for each data point read if it does.
  2231.  
  2232.  If timeseries data are being used, the time can span multiple columns.  The
  2233.  starting column should be specified.  Note that the spaces within the time
  2234.  must be included when calculating starting columns for other data.  E.g., if
  2235.  the first element on a line is a time with an embedded space, the y value
  2236.  should be specified as column three.
  2237.  
  2238.  It should be noted that `plot 'file'`, `plot 'file' using 1:2`, and `plot
  2239.  'file' using ($1):($2)` can be subtly different: 1) if `file` has some lines
  2240.  with one column and some with two, the first will invent x values when they
  2241.  are missing, the second will quietly ignore the lines with one column, and
  2242.  the third will store an undefined value for lines with one point (so that in
  2243.  a plot with lines, no line joins points across the bad point); 2) if a line
  2244.  contains text at the first column, the first will abort the plot on an error,
  2245.  but the second and third should quietly skip the garbage.
  2246.  
  2247.  In fact, it is often possible to plot a file with lots of lines of garbage at
  2248.  the top simply by specifying
  2249.  
  2250.        plot 'file' using 1:2
  2251.  
  2252.  If you want to leave text in your data files, it is always safe to put the
  2253.  comment character (#) in the first column of the text lines.
  2254. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/using/using.html"> Feeble using demos. </a>
  2255. 3 errorbars
  2256. ?plot errorbars
  2257. ?splot errorbars
  2258. ?errorbars
  2259.  Error bars are supported for 2-d data file plots by reading one to four
  2260.  additional columns (or `using` entries); these additional values are used in
  2261.  different ways by the various errorbar styles.
  2262.  
  2263.  In the default situation, `gnuplot` expects to see three, four, or six
  2264.  numbers on each line of the data file---either
  2265.  
  2266.        (x, y, ydelta),
  2267.        (x, y, ylow, yhigh),
  2268.        (x, y, xdelta),
  2269.        (x, y, xlow, xhigh),
  2270.        (x, y, xdelta, ydelta), or
  2271.        (x, y, xlow, xhigh, ylow, yhigh).
  2272.  
  2273.  The x coordinate must be specified.  The order of the numbers must be
  2274.  exactly as given above, though the `using` qualifier can manipulate the order
  2275.  and provide values for missing columns.  For example,
  2276.  
  2277.        plot 'file' with errorbars
  2278.        plot 'file' using 1:2:(sqrt($1)) with xerrorbars
  2279.        plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
  2280.  
  2281.  The last example is for a file containing an unsupported combination of
  2282.  relative x and absolute y errors.  The `using` entry generates absolute x min
  2283.  and max from the relative error.
  2284.  
  2285.  The y error bar is a vertical line plotted from (x, ylow) to (x, yhigh).
  2286.  If ydelta is specified instead of ylow and yhigh, ylow = y - ydelta and
  2287.  yhigh = y + ydelta are derived.  If there are only two numbers on the record,
  2288.  yhigh and ylow are both set to y.  The x error bar is a horizontal line
  2289.  computed in the same fashion.  To get lines plotted between the data points,
  2290.  `plot` the data file twice, once with errorbars and once with lines (but
  2291.  remember to use the `notitle` option on one to avoid two entries in the key).
  2292.  
  2293.  The error bars have crossbars at each end unless `set bar` is used (see `set
  2294.  bar` for details).
  2295.  
  2296.  If autoscaling is on, the ranges will be adjusted to include the error bars.
  2297. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/errorbar/errorbar.html"> Errorbar demos. </a>
  2298.  
  2299.  See `plot using`, `plot with`, and `set style` for more information.
  2300. 3 parametric
  2301. ?plot parametric
  2302. ?splot parametric
  2303. ?parametric
  2304.  When in parametric mode (`set parametric`) mathematical expressions must be
  2305.  given in pairs for `plot` and in triplets for `splot`.
  2306.  
  2307.  Examples:
  2308.        plot sin(t),t**2
  2309.        splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
  2310.  
  2311.  Data files are plotted as before, except any preceding parametric function
  2312.  must be fully specified before a data file is given as a plot.  In other
  2313.  words, the x parametric function (`sin(t)` above) and the y parametric
  2314.  function (`t**2` above) must not be interrupted with any modifiers or data
  2315.  functions; doing so will generate a syntax error stating that the parametric
  2316.  function is not fully specified.
  2317.  
  2318.  Other modifiers, such as `with` and `title`, may be specified only after the
  2319.  parametric function has been completed:
  2320.  
  2321.        plot sin(t),t**2 title 'Parametric example' with linespoints
  2322. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/param/param.html"> Parametric Mode Demos. </a>
  2323. 3 ranges
  2324. ?splot ranges
  2325. ?plot ranges
  2326. ?ranges
  2327.  The optional ranges specify the region of the graph that will be displayed.
  2328.  
  2329.  Syntax:
  2330.        [{<dummy-var>=}{{<min>}:{<max>}}]
  2331.        [{{<min>}:{<max>}}]
  2332.  
  2333.  The first form applies to the independent variable (`xrange` or `trange`, if
  2334.  in parametric mode).  The second form applies to the dependent variable
  2335.  `yrange` (and `xrange`, too, if in parametric mode).  <dummy-var> is a new
  2336.  name for the independent variable.  (The defaults may be changed with `set
  2337.  dummy`.)  The optional <min> and <max> terms can be constant expressions or *.
  2338.  
  2339.  In non-parametric mode, the order in which ranges must be given is `xrange`
  2340.  and `yrange`.
  2341.  
  2342.  In parametric mode, the order for the `plot` command is `trange`, `xrange`,
  2343.  and `yrange`.  The following `plot` command shows setting the `trange` to
  2344.  [-pi:pi], the `xrange` to [-1.3:1.3] and the `yrange` to [-1:1] for the
  2345.  duration of the graph:
  2346.  
  2347.        plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
  2348.  
  2349.  Note that the x2range and y2range cannot be specified here---`set x2range`
  2350.  and `set y2range` must be used.
  2351.  
  2352.  Ranges are interpreted in the order listed above for the appropriate mode.
  2353.  Once all those needed are specified, no further ones must be listed, but
  2354.  unneeded ones cannot be skipped---use an empty range `[]` as a placeholder.
  2355.  
  2356.  `*` can be used to allow autoscaling of either of min and max.  See also
  2357.  `set autoscale`.
  2358.  
  2359.  Ranges specified on the `plot` or `splot` command line affect only that
  2360.  graph; use the `set xrange`, `set yrange`, etc., commands to change the
  2361.  default ranges for future graphs.
  2362.  
  2363.  With time data, you must provide the range (in the same manner as the time
  2364.  appears in the datafile) within quotes.  `gnuplot` uses the `timefmt` string
  2365.  to read the value---see `set timefmt`.
  2366.  
  2367.  Examples:
  2368.  
  2369.  This uses the current ranges:
  2370.        plot cos(x)
  2371.  
  2372.  This sets the x range only:
  2373.        plot [-10:30] sin(pi*x)/(pi*x)
  2374.  
  2375.  This is the same, but uses t as the dummy-variable:
  2376.        plot [t = -10 :30]  sin(pi*t)/(pi*t)
  2377.  
  2378.  This sets both the x and y ranges:
  2379.        plot [-pi:pi] [-3:3]  tan(x), 1/x
  2380.  
  2381.  This sets only the y range, and turns off autoscaling on both axes:
  2382.        plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
  2383.  
  2384.  This sets xmax and ymin only:
  2385.        plot [:200] [-pi:]  exp(sin(x))
  2386.  
  2387.  This sets the x range for a timeseries:
  2388.        set timefmt "%d/%m/%y %H:%M"
  2389.        plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'
  2390.  
  2391. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/ranges/ranges.html"> See Demo. </a>
  2392. 3 title
  2393. ?plot title
  2394. ?splot title
  2395.  A line title for each function and data set appears in the key, accompanied
  2396.  by a sample of the line and/or symbol used to represent it.  It can be
  2397.  changed by using the `title` option.
  2398.  
  2399.  Syntax:
  2400.        title "<title>" | notitle
  2401.  
  2402.  where <title> is the new title of the line and must be enclosed in quotes.
  2403.  The quotes will not be shown in the key.  A special character may be given as
  2404.  a backslash followed by its octal value ("\345").  The tab character "\t" is
  2405.  understood.  Note that backslash processing occurs only for strings enclosed
  2406.  in double quotes---use single quotes to prevent such processing.  The newline
  2407.  character "\n" is not processed in key entries in either type of string.
  2408.  
  2409.  The line title and sample can be omitted from the key by using the keyword
  2410.  `notitle`.  A null title (`title ''`) is equivalent to `notitle`.  If only
  2411.  the sample is wanted, use one or more blanks (`title ' '`).
  2412.  
  2413.  By default the line title is the function or file name as it appears on the
  2414.  `plot` command.  If it is a file name, any datafile modifiers specified will
  2415.  be included in the default title.
  2416.  
  2417.  The layout of the key itself (position, title justification, etc.) can be
  2418.  controlled by `set key`.  Please see `set key` for details.
  2419.  
  2420.  Examples:
  2421.  
  2422.  This plots y=x with the title 'x':
  2423.        plot x
  2424.  
  2425.  This plots x squared with title "x^2" and "data.1" with title 'measured
  2426.  data':
  2427.        plot x**2 title "x^2", "data.1" t 'measured data'
  2428.  
  2429.  This puts an untitled circular border around a polar graph:
  2430.        set polar; plot my_function(t), 1 notitle
  2431. 3 with
  2432. ?plot with
  2433. ?plot style
  2434. ?splot with
  2435. ?splot style
  2436. ?style
  2437. ?with
  2438.  Functions and data may be displayed in one of a large number of styles.
  2439.  The `with` keyword provides the means of selection.
  2440.  
  2441.  Syntax:
  2442.        with <style> { {linestyle | ls <line_style>}
  2443.                       | {{linetype | lt <line_type>}
  2444.                          {linewidth | lw <line_width>}
  2445.                          {pointtype | pt <point_type>}
  2446.                          {pointsize | ps <point_size>}} }
  2447.  
  2448.  where <style> is either `lines`, `points`, `linespoints`, `impulses`, `dots`,
  2449.  `steps`, `fsteps`, `histeps`, `errorbars`, `xerrorbars`, `yerrorbars`,
  2450.  `xyerrorbars`, `boxes`, `boxerrorbars`, `boxxyerrorbars`, `financebars`,
  2451.  `candlesticks` or `vector`.  Some of these styles require additional
  2452.  information.  See `set style <style>` for details of each style.
  2453.  
  2454.  Default styles are chosen with the `set function style` and `set data style`
  2455.  commands.
  2456.  
  2457.  By default, each function and data file will use a different line type and
  2458.  point type, up to the maximum number of available types.  All terminal
  2459.  drivers support at least six different point types, and re-use them, in
  2460.  order, if more are required.  The LaTeX driver supplies an additional six
  2461.  point types (all variants of a circle), and thus will only repeat after 12
  2462.  curves are plotted with points.  The PostScript drivers (`postscript`)
  2463.  supplies a total of 64.
  2464.  
  2465.  If you wish to choose the line or point type for a single plot, <line_type>
  2466.  and <point_type> may be specified.  These are positive integer constants (or
  2467.  expressions) that specify the line type and point type to be used for the
  2468.  plot.  Use `test` to display the types available for your terminal.
  2469.  
  2470.  You may also scale the line width and point size for a plot by using
  2471.  <line_width> and <point_size>, which are specified relative to the default
  2472.  values for each terminal.  The pointsize may also be altered globally---see
  2473.  `set pointsize` for details.  But note that both <point_size> as set here and
  2474.  as set by `set pointsize` multiply the default point size---their effects are
  2475.  not cumulative.  That is, `set pointsize 2; plot x w p ps 3` will use points
  2476.  three times default size, not six.
  2477.  
  2478.  If you have defined specific line type/width and point type/size combinations
  2479.  with `set linestyle`, one of these may be selected by setting <line_style> to
  2480.  the index of the desired style.
  2481.  
  2482.  The keywords may be abbreviated as indicated.
  2483.  
  2484.  Note that the linewidth and pointsize options are not supported by all
  2485.  terminals.
  2486.  
  2487.  Examples:
  2488.  
  2489.  This plots sin(x) with impulses:
  2490.        plot sin(x) with impulses
  2491.  
  2492.  This plots x with points, x**2 with the default:
  2493.        plot x*y w points, x**2 + y**2
  2494.  
  2495.  This plots tan(x) with the default function style, "data.1" with lines:
  2496.        plot [ ] [-2:5] tan(x), "data.1" with l
  2497.  
  2498.  This plots "leastsq.dat" with impulses:
  2499.        plot 'leastsq.dat' w i
  2500.  
  2501.  This plots the data file 'population' with boxes:
  2502.        plot "population" with boxes
  2503.  
  2504.  This plots "exper.dat" with errorbars and lines connecting the points
  2505.  ('exper.dat' should have three or four data columns):
  2506.        plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars
  2507.  
  2508.  This plots sin(x) and cos(x) with linespoints, using the same line type but
  2509.  different point types:
  2510.        plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4
  2511.  
  2512.  This plots file "data" with points of type 3 and twice usual size:
  2513.        plot "data" with points pointtype 3 pointsize 2
  2514.  
  2515.  This plots two data sets with lines differing only by weight:
  2516.        plot "d1" t "good" w l lt 2 lw 3, "d2" t "bad" w l lt 2 lw 1
  2517.  
  2518.  See `set style` to change the default styles.
  2519. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/styles/styles.html"> Styles demos. </a>
  2520. 2 print
  2521. ?print
  2522.  The `print` command prints the value of <expression> to the screen.  It is
  2523.  synonymous with `pause 0`.  <expression> may be anything that `gnuplot` can
  2524.  evaluate that produces a number, or it can be a string.
  2525.  
  2526.  Syntax:
  2527.        print <expression> {, <expression>, ...}
  2528.  
  2529.  See `expressions`.
  2530. 2 pwd
  2531. ?pwd
  2532.  The `pwd` command prints the name of the working directory to the screen.
  2533. 2 quit
  2534. ?quit
  2535.  The `exit` and `quit` commands and END-OF-FILE character will exit `gnuplot`.
  2536.  Each of these commands will clear the output device (as does the `clear`
  2537.  command) before exiting.
  2538. 2 replot
  2539. ?replot
  2540.  The `replot` command without arguments repeats the last `plot` or `splot`
  2541.  command.  This can be useful for viewing a plot with different `set` options,
  2542.  or when generating the same plot for several devices.
  2543.  
  2544.  Arguments specified after a `replot` command will be added onto the last
  2545.  `plot` or `splot` command (with an implied ',' separator) before it is
  2546.  repeated.  `replot` accepts the same arguments as the `plot` and `splot`
  2547.  commands except that ranges cannot be specified.  Thus you can use `replot`
  2548.  to plot a function against the second axes if the previous command was `plot`
  2549.  but not if it was `splot`, and similarly you can use `replot` to add a plot
  2550.  from a binary file only if the previous command was `splot`.
  2551.  
  2552.  N.B.---use of
  2553.  
  2554.        plot '-' ; ... ; replot
  2555.  
  2556.  is not recommended.  `gnuplot` does not store the inline data internally, so
  2557.  since `replot` appends new information to the previous `plot` and then
  2558.  executes the modified command, the `'-'` from the initial `plot` will expect
  2559.  to read inline data again.
  2560.  
  2561.  Note that `replot` does not work in `multiplot` mode, since it reproduces
  2562.  only the last plot rather than the entire screen.
  2563.  
  2564.  See also `command-line-editing` for ways to edit the last `plot` (`splot`)
  2565.  command.
  2566. 2 reread
  2567. ?reread
  2568.  The `reread` command causes the current `gnuplot` command file, as specified
  2569.  by a `load` command or on the command line, to be reset to its starting
  2570.  point before further commands are read from it.  This essentially implements
  2571.  an endless loop of the commands from the beginning of the command file to
  2572.  the `reread` command.  (But this is not necessarily a disaster---`reread` can
  2573.  be very useful when used in conjunction with `if`.  See `if` for details.)
  2574.  The `reread` command has no effect if input from standard input.
  2575.  
  2576.  Examples:
  2577.  
  2578.  Suppose the file "looper" contains the commands
  2579.        a=a+1
  2580.        plot sin(x*a)
  2581.        pause -1
  2582.        if(a<5) reread
  2583.  and from within `gnuplot` you submit the commands
  2584.        a=0
  2585.        load 'looper'
  2586.  The result will be four plots (separated by the `pause` message).
  2587.  
  2588.  Suppose the file "data" contains six columns of numbers with a total yrange
  2589.  from 0 to 10; the first is x and the next are five different functions of x.
  2590.  Suppose also that the file "plotter" contains the commands
  2591.        c_p = c_p+1
  2592.        plot "$0" using 1:c_p with lines linetype c_p
  2593.        if(c_p <  n_p) reread
  2594.  and from within `gnuplot` you submit the commands
  2595.        n_p=6
  2596.        c_p=1
  2597.        set nokey
  2598.        set yrange [0:10]
  2599.        set multiplot
  2600.        call 'plotter' 'data'
  2601.        set nomultiplot
  2602.  The result is a single graph consisting of five plots.  The yrange must be
  2603.  set explicitly to guarantee that the five separate graphs (drawn on top of
  2604.  each other in multiplot mode) will have exactly the same axes.  The linetype
  2605.  must be specified; otherwise all the plots would be drawn with the same type.
  2606. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/animate/animate.html"> Reread Animation Demo</a>
  2607. 2 reset
  2608. ?reset
  2609.  The `reset` command causes all options that can be set with the `set`
  2610.  command to take on their default values.  The only exceptions are that the
  2611.  terminal set with `set term` and the output file set with `set output` are
  2612.  left unchanged.  This command is useful, e.g., to restore the default
  2613.  settings at the end of a command file, or to return to a defined state after
  2614.  lots of settings have been changed within a command file.  Please refer to
  2615.  the `set` command to see the default values that the various options take.
  2616. 2 save
  2617. ?save
  2618.  The `save` command saves user-defined functions, variables, `set` options,
  2619.  or all three, plus the last `plot` (`splot`) command to the specified file.
  2620.  
  2621.  Syntax:
  2622.        save  {<option>} "<filename>"
  2623.  
  2624.  where <option> is `functions`, `variables` or `set`. If no option is used,
  2625.  `gnuplot` saves functions, variables, `set` options and the last `plot`
  2626.  (`splot`) command.
  2627.  
  2628.  `save`d files are written in text format and may be read by the `load`
  2629.  command.
  2630.  
  2631.  The filename must be enclosed in quotes.
  2632.  
  2633.  Examples:
  2634.        save "work.gnu"
  2635.        save functions 'func.dat'
  2636.        save var 'var.dat'
  2637.        save set "options.dat"
  2638. 2 set-show
  2639. ?set
  2640. ?show
  2641. ?show all
  2642.  The `set` command sets _lots_ of options.  No screen is drawn, however, until
  2643.  a `plot`, `splot`, or `replot` command is given.
  2644.  
  2645.  The `show` command shows their settings.  `show all` shows all the
  2646.  settings.
  2647.  
  2648.  If a variable contains time/date data, `show` will display it according to
  2649.  the format currently defined by `set timefmt`, even if that was not in effect
  2650.  when the variable was initially defined.
  2651. 3 angles
  2652. ?set angles
  2653. ?show angles
  2654. ?angles
  2655. ?set angles degrees
  2656.  By default, `gnuplot` assumes the independent variable in polar graphs is in
  2657.  units of radians.  If `set angles degrees` is specified before `set polar`,
  2658.  then the default range is [0:360] and the independent variable has units of
  2659.  degrees.  This is particularly useful for plots of data files.  The angle
  2660.  setting also applies to 3-d mapping as set via the `set mapping` command.
  2661.  
  2662.  Syntax:
  2663.        set angles {degrees | radians}
  2664.        show angles
  2665.  
  2666.  The angle specified in `set grid polar` is also read and displayed in the
  2667.  units specified by `set angles`.
  2668.  
  2669.  `set angles` also affects the arguments of the machine-defined functions
  2670.  sin(x), cos(x) and tan(x), and the outputs of asin(x), acos(x), atan(x),
  2671.  atan2(x), and arg(x).  It has no effect on the arguments of hyperbolic
  2672.  functions or Bessel functions.  Note that the output of inverse hyperbolic
  2673.  functions of complex arguments are effected, however; if these functions are
  2674.  used, `set angles radians` must be in effect:
  2675.  
  2676.        x={1.0,0.1}
  2677.        set angles radians
  2678.        y=sinh(x)
  2679.        print y         #prints {1.16933, 0.154051}
  2680.        print asinh(y)  #prints {1.0, 0.1}
  2681.  but
  2682.        set angles degrees
  2683.        y=sinh(x)
  2684.        print y         #prints {1.16933, 0.154051}
  2685.        print asinh(y)  #prints {57.29578, 5.729578}
  2686. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/poldat/poldat.html"> Polar plot using `set angles`. </a>
  2687. 3 arrow
  2688. ?set arrow
  2689. ?set noarrow
  2690. ?show arrow
  2691. ?arrow
  2692. ?noarrow
  2693.  Arbitrary arrows can be placed on a plot using the `set arrow` command.
  2694.  
  2695.  Syntax:
  2696.        set arrow {<tag>} {from <position>} {to <position>} {{no}head}
  2697.                  { {linestyle | ls <line_style>}
  2698.                    | {linetype | lt <line_type>}
  2699.                      {linewidth | lw <line_width} }
  2700.        set noarrow {<tag>}
  2701.        show arrow
  2702.  
  2703.  <tag> is an integer that identifies the arrow.  If no tag is given, the
  2704.  lowest unused tag value is assigned automatically.  The tag can be used to
  2705.  delete or change a specific arrow.  To change any attribute of an existing
  2706.  arrow, use the `set arrow` command with the appropriate tag and specify the
  2707.  parts of the arrow to be changed.
  2708.  
  2709.  The <position>s are specified by either x,y or x,y,z, and may be preceded by
  2710.  `first`, `second`, `graph`, or `screen` to select the coordinate system.
  2711.  Unspecified coordinates default to 0.  The endpoints can be specified in
  2712.  one of four coordinate systems---`first` or `second` axes, `graph` or
  2713.  `screen`.  See `coordinates` for details.  A coordinate system specifier
  2714.  does not carry over from the "from" position to the "to" position.  Arrows
  2715.  outside the screen boundaries are permitted but may cause device errors.
  2716.  
  2717.  Specifying `nohead` produces an arrow drawn without a head---a line segment.
  2718.  This gives you yet another way to draw a line segment on the plot.  By
  2719.  default, arrows have heads.
  2720.  
  2721.  The line style may be selected from a user-defined list of line styles (see
  2722.  `set linestyle`) or may be defined here by providing values for <line_type>
  2723.  (an index from the default list of styles) and/or <line_width> (which is a
  2724.  multiplier for the default width).
  2725.  
  2726.  Note, however, that if a user-defined line style has been selected, its
  2727.  properties (type and width) cannot be altered merely by issuing another
  2728.  `set arrow` command with the appropriate index and `lt` or `lw`.
  2729.  
  2730.  Examples:
  2731.  
  2732.  To set an arrow pointing from the origin to (1,2) with user-defined style 5,
  2733.  use:
  2734.        set arrow to 1,2 ls 5
  2735.  
  2736.  To set an arrow from bottom left of plotting area to (-5,5,3), and tag the
  2737.  arrow number 3, use:
  2738.        set arrow 3 from graph 0,0 to -5,5,3
  2739.  
  2740.  To change the preceding arrow to end at 1,1,1, without an arrow head and
  2741.  double its width, use:
  2742.        set arrow 3 to 1,1,1 nohead lw 2
  2743.  
  2744.  To draw a vertical line from the bottom to the top of the graph at x=3, use:
  2745.        set arrow from 3, graph 0 to 3, graph 1 nohead
  2746.  
  2747.  To delete arrow number 2, use:
  2748.        set noarrow 2
  2749.  
  2750.  To delete all arrows, use:
  2751.        set noarrow
  2752.  
  2753.  To show all arrows (in tag order), use:
  2754.        show arrow
  2755. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/arrows/arrows.html"> Arrows Demos. </a>
  2756. 3 autoscale
  2757. ?set autoscale
  2758. ?set noautoscale
  2759. ?show autoscale
  2760. ?autoscale
  2761. ?noautoscale
  2762.  Autoscaling may be set individually on the x, y or z axis or globally on all
  2763.  axes. The default is to autoscale all axes.
  2764.  
  2765.  Syntax:
  2766.        set autoscale {<axes>{min|max}}
  2767.        set noautoscale {<axes>{min|max}}
  2768.        show autoscale
  2769.  
  2770.  where <axes> is either `x`, `y`, `z`, `x2`, `y2` or `xy`.  A keyword with
  2771.  `min` or `max` appended (this cannot be done with `xy`) tells `gnuplot` to
  2772.  autoscale just the minimum or maximum of that axis.  If no keyword is given,
  2773.  all axes are autoscaled.
  2774.  
  2775.  When autoscaling, the axis range is automatically computed and the dependent
  2776.  axis (y for a `plot` and z for `splot`) is scaled to include the range of the
  2777.  function or data being plotted.
  2778.  
  2779.  If autoscaling of the dependent axis (y or z) is not set, the current y or z
  2780.  range is used.
  2781.  
  2782.  Autoscaling the independent variables (x for `plot` and x,y for `splot`) is a
  2783.  request to set the domain to match any data file being plotted.  If there are
  2784.  no data files, autoscaling an independent variable has no effect.  In other
  2785.  words, in the absence of a data file, functions alone do not affect the x
  2786.  range (or the y range if plotting z = f(x,y)).
  2787.  
  2788.  Please see `set xrange` for additional information about ranges.
  2789.  
  2790.  The behavior of autoscaling remains consistent in parametric mode, (see `set
  2791.  parametric`).  However, there are more dependent variables and hence more
  2792.  control over x, y, and z axis scales.  In parametric mode, the independent or
  2793.  dummy variable is t for `plot`s and u,v for `splot`s.  `autoscale` in
  2794.  parametric mode, then, controls all ranges (t, u, v, x, y, and z) and allows
  2795.  x, y, and z to be fully autoscaled.
  2796.  
  2797.  Autoscaling works the same way for polar mode as it does for parametric mode
  2798.  for `plot`, with the extension that in polar mode `set dummy` can be used to
  2799.  change the independent variable from t (see `set dummy`).
  2800.  
  2801.  When tics are displayed on second axes but no plot has been specified for
  2802.  those axes, x2range and y2range are inherited from xrange and yrange.  This
  2803.  is done _before_ xrange and yrange are autoextended to a whole number of
  2804.  tics, which can cause unexpected results.
  2805.  
  2806.  Examples:
  2807.  
  2808.  This sets autoscaling of the y axis (other axes are not affected):
  2809.        set autoscale y
  2810.  
  2811.  This sets autoscaling only for the minimum of the y axis (the maximum of the
  2812.  y axis and the other axes are not affected):
  2813.        set autoscale ymin
  2814.  
  2815.  This sets autoscaling of the x and y axes:
  2816.        set autoscale xy
  2817.  
  2818.  This sets autoscaling of the x, y, z, x2 and y2 axes:
  2819.        set autoscale
  2820.  
  2821.  This disables autoscaling of the x, y, z, x2 and y2 axes:
  2822.        set noautoscale
  2823.  
  2824.  This disables autoscaling of the z axis only:
  2825.        set noautoscale z
  2826. 4 parametric mode
  2827. ?set autoscale parametric
  2828. ?set autoscale t
  2829.  When in parametric mode (`set parametric`), the xrange is as fully scalable
  2830.  as the y range.  In other words, in parametric mode the x axis can be
  2831.  automatically scaled to fit the range of the parametric function that is
  2832.  being plotted.  Of course, the y axis can also be automatically scaled just
  2833.  as in the non-parametric case.  If autoscaling on the x axis is not set, the
  2834.  current x range is used.
  2835.  
  2836.  Data files are plotted the same in parametric and non-parametric mode.
  2837.  However, there is a difference in mixed function and data plots: in
  2838.  non-parametric mode with autoscaled x, the x range of the datafile controls
  2839.  the x range of the functions; in parametric mode it has no influence.
  2840.  
  2841.  For completeness a last command `set autoscale t` is accepted.  However, the
  2842.  effect of this "scaling" is very minor.  When `gnuplot` determines that the
  2843.  t range would be empty, it makes a small adjustment if autoscaling is true.
  2844.  Otherwise, `gnuplot` gives an error.  Such behavior may, in fact, not be very
  2845.  useful and the command `set autoscale t` is certainly questionable.
  2846.  
  2847.  `splot` extends the above ideas as you would expect.  If autoscaling is set,
  2848.  then x, y, and z ranges are computed and each axis scaled to fit the
  2849.  resulting data.
  2850. 4 polar mode
  2851. ?set autoscale polar
  2852. ?set autoscale t
  2853.  When in polar mode (`set polar`), the xrange and the yrange are both found
  2854.  from the polar coordinates, and thus they can both be automatically scaled.
  2855.  In other words, in polar mode both the x and y axes can be automatically
  2856.  scaled to fit the ranges of the polar function that is being plotted.
  2857.  
  2858.  When plotting functions in polar mode, the rrange may be autoscaled.  When
  2859.  plotting data files in polar mode, the trange may also be autoscaled.  Note
  2860.  that if the trange is contained within one quadrant, autoscaling will produce
  2861.  a polar plot of only that single quadrant.
  2862.  
  2863.  Explicitly setting one or two ranges but not others may lead to unexpected
  2864.  results.
  2865. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/poldat/poldat.html"> See polar demos </a>
  2866. 3 bar
  2867. ?set bar
  2868. ?show bar
  2869.  The `set bar` command controls the tics at the ends of errorbars.
  2870.  
  2871.  Syntax:
  2872.        set bar {small | large | <size>}
  2873.        show bar
  2874.  
  2875.  `small` is a synonym for 0.0, and `large` for 1.0.
  2876.  The default is 1.0 if no size is given.
  2877. 3 bmargin
  2878. ?set bmargin
  2879. ?bmargin
  2880.  The command `set bmargin` sets the size of the bottom margin.  Please see
  2881.  `set margin` for details.
  2882. 3 border
  2883. ?set border
  2884. ?set noborder
  2885. ?show border
  2886. ?border
  2887. ?noborder
  2888.  The `set border` and `set noborder` commands control the display of the graph
  2889.  borders for the `plot` and `splot` commands.
  2890.  
  2891.  Syntax:
  2892.        set border {<integer>}
  2893.        set noborder
  2894.        show border
  2895.  
  2896.  The borders are encoded in a 12-bit integer.  The bottom four bits control
  2897.  the border for `plot` and the sides of the base for `splot`, the next four
  2898.  bits control the verticals in `splot` and the top four bits control the edges
  2899.  on top of the `splot`.  In detail, the `<integer>` should be the sum of the
  2900.  appropriate entries from the following table:
  2901.  
  2902. @start table - first is interactive cleartext form
  2903.                          plot border
  2904.                              and
  2905.                          splot base    splot verticals    splot top
  2906.        bottom (south)         1              16              256
  2907.        left   (west)          2              32              512
  2908.        top    (north)         4              64             1024
  2909.        right  (east)          8             128             2048
  2910. #\multicolumn{4}{|c|}{Border Specification} \\
  2911. # & plot border & & \\
  2912. # & and & & \\
  2913. # & splot base & splot verticals & splot top \\ \hline
  2914. #bottom (south) & 1 & 16 & 256 \\
  2915. #left   (west) & 2 & 32 & 512 \\
  2916. #top    (north) & 4 & 64 & 1024 \\
  2917. #right  (east) & 8 & 128 & 2048 \\
  2918. %@plot border@@
  2919. %@and@@
  2920. %@splot base@splot verticals@splot top
  2921. %_
  2922. %bottom (south)@1@16@256
  2923. %left   (west)@2@32@512
  2924. %top    (north)@4@64@1024
  2925. %right  (east)@8@128@2048
  2926. @end table
  2927.  
  2928.  The default is 31, which is all four sides for `plot`, and base and z axis
  2929.  for `splot`.
  2930.  
  2931.  To have tics on edges other than bottom and left, disable the usual tics and
  2932.  enable the second axes.
  2933.  
  2934.  Examples:
  2935.  
  2936.  Draw all borders:
  2937.        set border
  2938.  
  2939.  Draw only the SOUTHWEST borders:
  2940.        set border 3
  2941.  
  2942.  Draw a complete box around a `splot`:
  2943.        set border 4095
  2944.  
  2945.  Draw a partial box, omitting the front vertical:
  2946.        set border 127+256+512
  2947.  
  2948.  Draw only the NORTHEAST borders:
  2949.        set noxtics; set noytics; set x2tics; set y2tics; set border 12
  2950.  
  2951. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/borders/borders.html"> Borders Demo. </a>
  2952. 3 boxwidth
  2953. ?set boxwidth
  2954. ?show boxwidth
  2955. ?boxwidth
  2956.  The `set boxwidth` command is used to set the default width of boxes in the
  2957.  `boxes` and `boxerrorbars` styles.
  2958.  
  2959.  Syntax:
  2960.        set boxwidth {<width>}
  2961.        show boxwidth
  2962.  
  2963.  If a data file is plotted without the width being specified in the third,
  2964.  fourth, or fifth column (or `using` entry), or if a function is plotted, the
  2965.  width of each box is set by the `set boxwidth` command.  (If a width is given
  2966.  both in the file and by the `set boxwidth` command, the one in the file is
  2967.  used.)  If the width is not specified in one of these ways, the width of each
  2968.  box will be calculated automatically so that it touches the adjacent boxes.
  2969.  In a four-column data set, the fourth column will be interpreted as the box
  2970.  width unless the width is set to -2.0, in which case the width will be
  2971.  calculated automatically.  See `set style boxerrorbars` for more details.
  2972.  
  2973.  To set the box width to automatic use the command
  2974.        set boxwidth
  2975.  or, for four-column data,
  2976.        set boxwidth -2
  2977.  
  2978.  The same effect can be achieved with the `using` keyword in `plot`:
  2979.        plot 'file' using 1:2:3:4:(-2)
  2980. 3 clabel
  2981. ?set clabel
  2982. ?set noclabel
  2983. ?show clabel
  2984. ?clabel
  2985. ?noclabel
  2986.  `gnuplot` will vary the linetype used for each contour level when clabel is
  2987.  set.  When this option on (the default), a legend labels each linestyle with
  2988.  the z level it represents.  It is not possible at present to separate the
  2989.  contour labels from the surface key.
  2990.  
  2991.  Syntax:
  2992.        set clabel {'<format>'}
  2993.        set noclabel
  2994.        show clabel
  2995.  
  2996.  The default for the format string is %8.3g, which gives three decimal places.
  2997.  This may produce poor label alignment if the key is altered from its default
  2998.  configuration.
  2999.  
  3000.  See also `set contour`.
  3001. 3 clip
  3002. ?set clip
  3003. ?set noclip
  3004. ?show clip
  3005. ?clip
  3006. ?noclip
  3007.  `gnuplot` can clip data points and lines that are near the boundaries of a
  3008.  graph.
  3009.  
  3010.  Syntax:
  3011.        set clip <clip-type>
  3012.        set noclip <clip-type>
  3013.        show clip
  3014.  
  3015.  Three clip types are supported by `gnuplot`: `points`, `one`, and `two`.
  3016.  One, two, or all three clip types may be active for a single graph.
  3017.  
  3018.  The `points` clip type forces `gnuplot` to clip (actually, not plot at all)
  3019.  data points that fall within but too close to the boundaries.  This is done
  3020.  so that large symbols used for points will not extend outside the boundary
  3021.  lines.  Without clipping points near the boundaries, the plot may look bad.
  3022.  Adjusting the x and y ranges may give similar results.
  3023.  
  3024.  Setting the `one` clip type causes `gnuplot` to draw a line segment which has
  3025.  only one of its two endpoints within the graph.  Only the in-range portion of
  3026.  the line is drawn.  The alternative is to not draw any portion of the line
  3027.  segment.
  3028.  
  3029.  Some lines may have both endpoints out of range, but pass through the graph.
  3030.  Setting the `two` clip-type allows the visible portion of these lines to be
  3031.  drawn.
  3032.  
  3033.  In no case is a line drawn outside the graph.
  3034.  
  3035.  The defaults are `noclip points`, `clip one`, and `noclip two`.
  3036.  
  3037.  To check the state of all forms of clipping, use
  3038.        show clip
  3039.  
  3040.  For backward compatibility with older versions, the following forms are also
  3041.  permitted:
  3042.        set clip
  3043.        set noclip
  3044.  
  3045.  `set clip` is synonymous with `set clip points`; `set noclip` turns off all
  3046.  three types of clipping.
  3047. 3 cntrparam
  3048. ?set cntrparam
  3049. ?show cntrparam
  3050. ?cntrparam
  3051.  `set cntrparam` controls the generation of contours and their smoothness for
  3052.  a contour plot.
  3053.  
  3054.  Syntax:
  3055.        set cntrparam {  {linear | cubicspline | bspline}
  3056.                       | points <n> | order <n>
  3057.                       | levels  {auto} {<n>}
  3058.                               | discrete <z1> {,<z2>} ...
  3059.                               | incremental {<start>, <incr> {,<end>}} }
  3060.        show cntrparam
  3061.  
  3062.  This command controls the way contours are plotted.  <n> should be an
  3063.  integral constant expression and <z1>, <z2> ... any constant expressions.
  3064.  The parameters are:
  3065.  
  3066.  `linear`, `cubicspline`, `bspline`---Controls type of approximation or
  3067.  interpolation.  If `linear`, then the contours are drawn piecewise linear, as
  3068.  extracted from the surface directly.  If `cubicspline`, then piecewise linear
  3069.  contours are interpolated to form somewhat smoother contours, but which may
  3070.  undulate.  If `bspline`, a guaranteed-smoother curve is drawn, which only
  3071.  approximates the piecewise linear data.
  3072.  
  3073.  `points`---Eventually all drawings are done with piecewise linear strokes.
  3074.  This number controls the number of points used to approximate a curve.
  3075.  It is relevant only for `cubicspline` and `bspline` modes.
  3076.  
  3077.  `order`---Order of the bspline approximation to be used.  The bigger this
  3078.  order is, the smoother the resulting contour.  (Of course, higher order
  3079.  bspline curves will move further away from the original piecewise linear
  3080.  data.)  This option is relevant for `bspline` mode only.  Allowed values are
  3081.  integers in the range from 2 (linear) to 10.
  3082.  
  3083.  `levels`---Approximate number of contour levels.  Selection of the levels is
  3084.  controlled by `auto` (default), `discrete`, and `incremental`.  For `auto`,
  3085.  if the surface is bounded by zmin and zmax, contours will be generated at
  3086.  integer multiples of dz between zmin and zmax, where dz is 1, 2, or 5 times
  3087.  some power of ten (like the step between two tic marks).  For `discrete`,
  3088.  contours will be generated at z = <z1>, <z2> ... as specified.  The number of
  3089.  discrete levels is limited to MAX_DISCRETE_LEVELS, defined in plot.h to be
  3090.  30.  If `incremental`, contours are generated at values of z beginning at
  3091.  <start> and increasing by <increment> until <end> is reached.  If <end> is
  3092.  not specified, MAX_DISCRETE_LEVELS will be generated.
  3093.  
  3094.  If the command `set cntrparam` is given without any arguments specified,  the
  3095.  defaults are used: linear, 5 points, order 4, 5 `auto` levels.
  3096.  
  3097.  Examples:
  3098.        set cntrparam bspline
  3099.        set cntrparam points 7
  3100.        set cntrparam order 10
  3101.  
  3102.  To select 5 levels automatically:
  3103.        set cntrparam levels auto 5
  3104.  
  3105.  To specify discrete levels at .1, .37, and .9:
  3106.        set cntrparam levels discrete .1,1/exp(1),.9
  3107.  
  3108.  To specify levels from 0 to 4 with increment 1:
  3109.        set cntrparam levels incremental  0,1,4
  3110.  
  3111.  To set the number of levels to 10 (retaining the current settings of auto,
  3112.  discr. and increment's start and increment value, while changing its end):
  3113.        set cntrparam levels 10
  3114.  
  3115.  To set the start and increment while retaining the number of levels:
  3116.        set cntrparam levels incremental 100,50
  3117.  
  3118.  See also `set contour` for control of where the contours are drawn, and `set
  3119.  clabel` for control of the format of the contour labels.
  3120. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/contours/contours.html">Contours Demo</a> and
  3121. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/discrete/discrete.html">contours with User Defined Levels.</a>
  3122. 3 contour
  3123. ?set contour
  3124. ?set nocontour
  3125. ?show contour
  3126. ?contour
  3127. ?nocontour
  3128.  `set contour` enables contour drawing for surfaces. This option is available
  3129.  for `splot` only.
  3130.  
  3131.  Syntax:
  3132.        set contour {base | surface | both}
  3133.        set nocontour
  3134.        show contour
  3135.  
  3136.  The three options specify where to draw the contours: `base` draws the
  3137.  contours on the grid base where the x/ytics are placed, `surface` draws the
  3138.  contours on the surfaces themselves, and `both` draws the contours on both
  3139.  the base and the surface.  If no option is provided, the default is `base`.
  3140.  
  3141.  See also `set cntrparam` for the parameters that affect the drawing of
  3142.  contours, and `set clabel` for control of labelling of the contours.
  3143.  
  3144.  The surface can be switched off (see `set surface`), giving a contour-only
  3145.  graph.  Though it is possible to use `set view` to enlarge the plot to fill
  3146.  the screen, better results can be obtained by writing the contour information
  3147.  out to a file, and rereading it as a 2-d datafile plot:
  3148.  
  3149.        set nosurface
  3150.        set contour
  3151.        set cntrparam ...
  3152.        set term table
  3153.        set out 'filename'
  3154.        splot ...
  3155.        set out
  3156.        # contour info now in filename
  3157.        set term <whatever>
  3158.        plot 'filename'
  3159.  
  3160.  In order to draw contours, the data must be organized as "grid data".  In
  3161.  such a file all of the points for a single y value are listed, then all the
  3162.  points for the next y, and so on.  A single blank line (a line containing no
  3163.  characters other than blank spaces and a carriage return and/or a line feed)
  3164.  separates one y value group from the next.  See also `plot datafile`.
  3165.  
  3166.  If contours are desired from non-grid data, `set dgrid3d` can be used to
  3167.  create an appropriate grid.  See `set dgrid3d` for more information.
  3168. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/contours/contours.html">Contours Demo</a> and
  3169. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/discrete/discrete.html">contours with User Defined Levels.</a>
  3170. 3 data style
  3171. ?set data style
  3172. ?show data style
  3173. ?data style
  3174.  The `set data style` command changes the default plotting style for data
  3175.  plots.
  3176.  
  3177.  Syntax:
  3178.        set data style <style-choice>
  3179.        show data style
  3180.  
  3181.  See `set style` for the choices.  If no choice is given, the choices are
  3182.  listed.  `show data style` shows the current default data plotting style.
  3183. 3 dgrid3d
  3184. ?set dgrid3d
  3185. ?set nodgrid3d
  3186. ?show dgrid3d
  3187. ?dgrid3d
  3188. ?nodgrid3d
  3189.  The `set dgrid3d` command enables and sets the different parameters for
  3190.  non-grid to grid data mapping.
  3191.  
  3192.  Syntax:
  3193.        set dgrid3d {<row_size>} {,{<col_size>} {,<norm>}}
  3194.        set nodgrid3d
  3195.        show dgrid3d
  3196.  
  3197.  By default `dgrid3d` is disabled.  When enabled, 3-d data read from a file
  3198.  are always treated as a scattered data set.  A grid with dimensions derived
  3199.  from a bounding box of the scattered data and size as specified by the
  3200.  row/col_size parameters is created for plotting and contouring.  The grid is
  3201.  equally spaced in x and y; the z values are computed as weighted averages of
  3202.  the scattered points' values.
  3203.  
  3204.  The third parameter, norm, controls the weighting: each point is weighted
  3205.  inversely by its distance (from the grid point) raised to the norm power.
  3206.  (Actually it's not quite the distance: the weights are given by the inverse
  3207.  of dx^norm + dy^norm, where dx and dy are the components of the separation
  3208.  of the grid point from each data point.)  Thus the closer the data point is
  3209.  to a grid point, the more effect it has on that grid point.  In `gnuplot`,
  3210.  this distance computation is optimized for norms that are powers of 2,
  3211.  specifically 1, 2, 4, 8, and 16, but any non-negative integer can be used.
  3212.  
  3213.  The `dgrid3d` option is a simple low pass filter that converts scattered data
  3214.  to a grid data set.  More sophisticated approaches to this problem exist and
  3215.  should be used to preprocess the data outside `gnuplot` if this simple
  3216.  solution is found inadequate.
  3217.  
  3218.  Examples:
  3219.        set dgrid3d 10,10,1     # defaults
  3220.        set dgrid3d ,,4
  3221.  
  3222.  The first specifies that a grid of size 10 by 10 is to be constructed using
  3223.  the L2 norm (a norm of 2 is to be used in the distance computation).  The
  3224.  second only modifies the norm to be used to L4.
  3225. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/scatter/scatter.html"> Dgrid3d Demo.</a>
  3226.  
  3227. 3 dummy
  3228. ?set dummy
  3229. ?show dummy
  3230. ?dummy
  3231.  The `set dummy` command changes the default dummy variable names.
  3232.  
  3233.  Syntax:
  3234.        set dummy {<dummy-var>} {,<dummy-var>}
  3235.        show dummy
  3236.  
  3237.  By default, `gnuplot` assumes that the independent, or "dummy", variable for
  3238.  the `plot` command is "t" if in parametric or polar mode, or "x" otherwise.
  3239.  Similarly the independent variables for the `splot` command are "u" and "v"
  3240.  in parametric mode (`splot` cannot be used in polar mode), or "x" and "y"
  3241.  otherwise.
  3242.  
  3243.  It may be more convenient to call a dummy variable by a more physically
  3244.  meaningful or conventional name.  For example, when plotting time functions:
  3245.  
  3246.        set dummy t
  3247.        plot sin(t), cos(t)
  3248.  
  3249.  At least one dummy variable must be set on the command; `set dummy` by itself
  3250.  will generate an error message.
  3251.  
  3252.  Examples:
  3253.        set dummy u,v
  3254.        set dummy ,s
  3255.  
  3256.  The second example sets the second variable to s.
  3257. 3 encoding
  3258. ?set encoding
  3259. ?show encoding
  3260. ?encoding
  3261.  The `set encoding` command selects a character encoding.  Valid values are
  3262.  `default`, which does nothing; `iso_8859_1` (known in the PostScript world as
  3263.  `ISO-Latin1`), which is used on many Unix workstations and with MS-Windows;
  3264.  `cp850`, for OS/2; and `cp437`, for MS-DOS.
  3265.  
  3266.  Syntax:
  3267.        set encoding <value>
  3268.        show encoding
  3269.  
  3270.  Please note that this is not supported on all terminal types.  Note also that
  3271.  the device must be able to produce the non-standard characters.
  3272. 3 format
  3273. ?set format
  3274. ?show format
  3275. ?format
  3276.  The format of the tic-mark labels can be set with the `set format` command.
  3277.  
  3278.  Syntax:
  3279.        set format {<axes>} {"<format-string>"}
  3280.        set format {<axes>} {'<format-string>'}
  3281.        show format
  3282.  
  3283.  where <axes> is either `x`, `y`, `z`, `xy`, `x2`, `y2` or nothing (which is
  3284.  the same as `xy`).  The length of the string representing a ticmark (after
  3285.  formatting with 'printf') is restricted to 100 characters.  If the format
  3286.  string is omitted, the format will be returned to the default "%g".  For
  3287.  LaTeX users, the format "$%g$" is often desirable.  If the empty string "" is
  3288.  used, no label will be plotted with each tic, though the tic mark will still
  3289.  be plotted.  To eliminate all tic marks, use `set noxtics` or `set noytics`.
  3290.  
  3291.  Newline (\n) is accepted in the format string.  Use double-quotes rather than
  3292.  single-quotes to enable such interpretation.  See also `syntax`.
  3293.  
  3294.  The default format for both axes is "%g", but other formats such as "%.2f" or
  3295.  "%3.0em" are often desirable.  Anything accepted by 'printf' when given a
  3296.  double precision number, and accepted by the terminal, will work.  Some other
  3297.  options have been added.  If the format string looks like a floating point
  3298.  format, then `gnuplot` tries to construct a reasonable format.
  3299.  
  3300.  Characters not preceded by "%" are printed verbatim.  Thus you can include
  3301.  spaces and labels in your format string, such as "%g m", which will put " m"
  3302.  after each number.  If you want "%" itself, double it: "%g %%".
  3303.  
  3304.  The acceptable formats (if not in date/time mode) are:
  3305.  
  3306. @start table - first is interactive cleartext form
  3307.        Format       Explanation
  3308.        %f           floating point notation
  3309.        %e or %E     exponential notation; an "e" or "E" before the power
  3310.        %g or %G     the shorter of %e (or %E) and %f
  3311.        %x or %X     hex
  3312.        %o or %O     octal
  3313.        %t           mantissa to base 10
  3314.        %l           mantissa to base of current logscale
  3315.        %s           mantissa to base of current logscale; scientific power
  3316.        %T           power to base 10
  3317.        %L           power to base of current logscale
  3318.        %S           scientific power
  3319.        %c           character replacement for scientific power
  3320.        %P           multiple of pi
  3321. #\multicolumn{3}{|c|}{Format Specifiers}\\
  3322. #Format && Explanation \\ \hline
  3323. #\verb@%f@ && floating point notation \\
  3324. #\verb@%e@ or \verb@%E@ && exponential notation; an "e" or "E" before the power \\
  3325. #\verb@%g@ or \verb@%G@ && the shorter of \verb@%e@ (or \verb@%E@) and \verb@%f@ \\
  3326. #\verb@%x@ or \verb@%X@ && hex \\
  3327. #\verb@%o@ or \verb@%O@ && octal \\
  3328. #\verb@%t@ && mantissa to base 10 \\
  3329. #\verb@%l@ && mantissa to base of current logscale \\
  3330. #\verb@%s@ && mantissa to base of current logscale; scientific power \\
  3331. #\verb@%T@ && power to base 10 \\
  3332. #\verb@%L@ && power to base of current logscale \\
  3333. #\verb@%S@ && scientific power \\
  3334. #\verb@%c@ && character replacement for scientific power \\
  3335. #\verb@%P@ && multiple of pi \\
  3336. %Format@Explanation
  3337. %_
  3338. %%f@floating point notation
  3339. %%e or %E@exponential notation; an "e" or "E" before the power
  3340. %%g or %G@the shorter of %e (or %E) and %f
  3341. %%x or %X@hex
  3342. %%o or %O@octal
  3343. %%t@mantissa to base 10
  3344. %%l@mantissa to base of current logscale
  3345. %%s@mantissa to base of current logscale; scientific power
  3346. %%T@power to base 10
  3347. %%L@power to base of current logscale
  3348. %%S@scientific power
  3349. %%c@character replacement for scientific power
  3350. %%P@multiple of pi
  3351. %_
  3352. @end table
  3353.  
  3354.  A 'scientific' power is one such that the exponent is a multiple of three.
  3355.  Character replacement of scientific powers (`"%c"`) has been implemented
  3356.  for powers in the range -18 to +18.  For numbers outside of this range the
  3357.  format reverts to exponential.
  3358.  
  3359.  Other acceptable modifiers (which come after the "%" but before the format
  3360.  specifier) are "-", which left-justifies the number; "+", which forces all
  3361.  numbers to be explicitly signed; "#", which places a decimal point after
  3362.  floats that have only zeroes following the decimal point; a positive integer,
  3363.  which defines the field width; "0" (the digit, not the letter) immediately
  3364.  preceding the field width, which indicates that leading zeroes are to be used
  3365.  instead of leading blanks; and a decimal point followed by a non-negative
  3366.  integer, which defines the precision (the minimum number of digits of an
  3367.  integer, or the number of digits following the decimal point of a float).
  3368.  
  3369.  Some releases of 'printf' may not support all of these modifiers but may also
  3370.  support others; in case of doubt, check the appropriate documentation and
  3371.  then experiment.
  3372.  
  3373.  Examples:
  3374.        set format y "%t"; set ytics (5,10)          # "5.0" and "1.0"
  3375.        set format y "%s"; set ytics (500,1000)      # "500" and "1.0"
  3376.        set format y "+-12.3f"; set ytics(12345)     # "+12345.000  "
  3377.        set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"
  3378.        set format y "%s*10^{%S}"; set ytic(12345)   # "12.345*10^{3}"
  3379.        set format y "%s %cg"; set ytic(12345)       # "12.345 kg"
  3380.        set format y "%.0P pi"; set ytic(6.283185)   # "2 pi"
  3381.        set format y "%.0P%%"; set ytic(50)          # "50%"
  3382.  
  3383.        set log y 2; set format y '%l'; set ytics (1,2,3)
  3384.        #displays "1.0", "1.0" and "1.5" (since 3 is 1.5 * 2^1)
  3385.  
  3386.  There are some problem cases that arise when numbers like 9.999 are printed
  3387.  with a format that requires both rounding and a power.
  3388.  
  3389.  If the data type for the axis is date/time, the format string must contain
  3390.  valid codes for the 'strftime' function (outside of `gnuplot`, type "man
  3391.  strftime").  See `set timefmt` for a list of the allowed input format codes.
  3392.  
  3393.  In date/time mode, the acceptable formats are:
  3394.  
  3395. @start table - first is interactive cleartext form
  3396.        Format       Explanation
  3397.        %a           abbreviated name of day of the week
  3398.        %A           full name of day of the week
  3399.        %b or %h     abbreviated name of the month
  3400.        %B           full name of the month
  3401.        %d           day of the month, 1--31
  3402.        %D           shorthand for "%m/%d/%y"
  3403.        %H or %k     hour, 0--24
  3404.        %I or %l     hour, 0--12
  3405.        %j           day of the year, 1--366
  3406.        %m           month, 1--12
  3407.        %M           minute, 0--60
  3408.        %p           "am" or "pm"
  3409.        %r           shorthand for "%I:%M:%S %p"
  3410.        %R           shorthand for %H:%M"
  3411.        %S           second, 0--60
  3412.        %T           shorthand for "%H:%M:%S"
  3413.        %U           week of the year (week starts on Sunday)
  3414.        %w           day of the week, 0--6 (Sunday = 0)
  3415.        %W           week of the year (week starts on Monday)
  3416.        %y           year, 0-99
  3417.        %Y           year, 4-digit
  3418. #\multicolumn{3}{|c|}{Date/Time Format Specifiers}\\
  3419. #Format && Explanation \\ \hline
  3420. #\verb@%a@ && abbreviated name of day of the week \\
  3421. #\verb@%A@ && full name of day of the week \\
  3422. #\verb@%b@ or \verb@%h@ && abbreviated name of the month \\
  3423. #\verb@%B@ && full name of the month \\
  3424. #\verb@%d@ && day of the month, 1--31 \\
  3425. #\verb@%D@ && shorthand for \verb@"%m/%d/%y"@ \\
  3426. #\verb@%H@ or \verb@%k@ && hour, 0--24 \\
  3427. #\verb@%I@ or \verb@%l@ && hour, 0--12 \\
  3428. #\verb@%j@ && day of the year, 1--366 \\
  3429. #\verb@%m@ && month, 1--12 \\
  3430. #\verb@%M@ && minute, 0--60 \\
  3431. #\verb@%p@ && "am" or "pm" \\
  3432. #\verb@%r@ && shorthand for \verb@"%I:%M:%S %p"@ \\
  3433. #\verb@%R@ && shorthand for \verb@%H:%M"@ \\
  3434. #\verb@%S@ && second, 0--60 \\
  3435. #\verb@%T@ && shorthand for \verb@"%H:%M:%S"@ \\
  3436. #\verb@%U@ && week of the year (week starts on Sunday) \\
  3437. #\verb@%w@ && day of the week, 0--6 (Sunday = 0) \\
  3438. #\verb@%W@ && week of the year (week starts on Monday) \\
  3439. #\verb@%y@ && year, 0-99 \\
  3440. #\verb@%Y@ && year, 4-digit \\
  3441. %Format@Explanation
  3442. %_
  3443. %%a@abbreviated name of day of the week
  3444. %%A@full name of day of the week
  3445. %%b or %h@abbreviated name of the month
  3446. %%B@full name of the month
  3447. %%d@day of the month, 1--31
  3448. %%D@shorthand for "%m/%d/%y"
  3449. %%H or %k@hour, 0--24
  3450. %%I or %l@hour, 0--12
  3451. %%j@day of the year, 1--366
  3452. %%m@month, 1--12
  3453. %%M@minute, 0--60
  3454. %%p@"am" or "pm"
  3455. %%r@shorthand for "%I:%M:%S %p"
  3456. %%R@shorthand for %H:%M"
  3457. %%S@second, 0--60
  3458. %%T@shorthand for "%H:%M:%S"
  3459. %%U@week of the year (week starts on Sunday)
  3460. %%w@day of the week, 0--6 (Sunday = 0)
  3461. %%W@week of the year (week starts on Monday)
  3462. %%y@year, 0-99
  3463. %%Y@year, 4-digit
  3464. %_
  3465. @end table
  3466.  
  3467.  Except for the non-numerical formats, these may be preceded by a "0" ("zero",
  3468.  not "oh") to pad the field length with leading zeroes, and a positive digit,
  3469.  to define the minimum field width (which will be overridden if the specified
  3470.  width is not large enough to contain the number).  There is a 24-character
  3471.  limit to the length of the printed text; longer strings will be truncated.
  3472.  
  3473.  Examples:
  3474.  
  3475.  Suppose the text is "76/12/25 23:11:11".  Then
  3476.        set format x                 # defaults to "12/25/76" \n "23:11"
  3477.        set format x "%A, %d %b %Y"  # "Saturday, 25 Dec 1976"
  3478.        set format x "%r %d"         # "11:11:11 pm 12/25/76"
  3479.  
  3480.  Suppose the text is "98/07/06 05:04:03".  Then
  3481.        set format x "%1y/%2m/%3d %01H:%02M:%03S"  # "98/ 7/  6 5:04:003"
  3482.  
  3483.  See also `set xtics` for more information about tic labels.
  3484. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/electron/electron.html"> See demo. </a>
  3485. 3 function style
  3486. ?set function style
  3487. ?show function style
  3488. ?function style
  3489.  The `set function style` command changes the default plotting style for
  3490.  function plots.
  3491.  
  3492.  Syntax:
  3493.        set function style <style-choice>
  3494.        show function style
  3495.  
  3496.  See `set style` for the choices.  If no choice is given, the choices are
  3497.  listed.  `show function style` shows the current default function plotting
  3498.  style.
  3499. 3 functions
  3500. ?show functions
  3501.  The `show functions` command lists all user-defined functions and their
  3502.  definitions.
  3503.  
  3504.  Syntax:
  3505.        show functions
  3506.  
  3507.  For information about the definition and usage of functions in `gnuplot`,
  3508.  please see `expressions` and `user-defined`.
  3509. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/spline/spline.html"> Splines as User Defined Functions.</a>
  3510. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/airfoil/airfoil.html">Use of functions and complex variables for airfoils </a>
  3511. 3 grid
  3512. ?set grid
  3513. ?set nogrid
  3514. ?show grid
  3515. ?grid
  3516. ?nogrid
  3517.  The `set grid` command allows grid lines to be drawn on the plot.
  3518.  
  3519.  Syntax:
  3520.        set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
  3521.                 {{no}{m}x2tics} {{no}{m}y2tics}
  3522.                 {polar {<angle>}} {<major_linetype> {<minor_linetype>}}
  3523.        set nogrid
  3524.        show grid
  3525.  
  3526.  The grid can be enabled and disabled for the major and/or minor tic marks on
  3527.  any axis, and the linetype can be specified for major and minor grid lines.
  3528.  But note that <major_linetype> and <minor_linetype> are indices in the
  3529.  default linetype list provided by the terminal; user-defined linetypes (via
  3530.  the `set linestyle` command) are not accessible for grid lines.
  3531.  
  3532.  Additionally, a polar grid can be selected for 2-d plots---circles are drawn
  3533.  to intersect the selected tics, and radial lines are drawn at definable
  3534.  intervals.  (The interval is given in degrees or radians ,depending on the
  3535.  `set angles` setting.)  Note that a polar grid is no longer automatically
  3536.  generated in polar mode.
  3537.  
  3538.  The pertinent tics must be enabled before `set grid` can draw them; `gnuplot`
  3539.  will quietly ignore instructions to draw grid lines at non-existent tics, but
  3540.  they will appear if the tics are subsequently enabled.
  3541.  
  3542.  If no linetype is specified for the minor gridlines, the same linetype as the
  3543.  major gridlines is used.  The default polar angle is 30 degrees.
  3544.  
  3545.  Z grid lines are drawn on the back of the plot.  This looks better if a
  3546.  partial box is drawn around the plot---see `set border`.
  3547. 3 hidden3d
  3548. ?set hidden3d
  3549. ?set nohidden3d
  3550. ?show hidden3d
  3551. ?hidden3d
  3552. ?nohidden3d
  3553.  The `set hidden3d` command enables hidden line removal for explicit surface
  3554.  plotting (see `splot`).
  3555.  
  3556.  Syntax:
  3557.        set hidden3d
  3558.        set nohidden3d
  3559.        show hidden3d
  3560.  
  3561.  Hidden line removal may be used for both explicit functions and for explicit
  3562.  data.  It now works for parametric surfaces as well.  This mode is meaningful
  3563.  only when surfaces are `splot`ted `with lines`.
  3564.  
  3565.  When this flag is set, both the hidden portion of the surface and possibly
  3566.  its hidden contours (see `set contour`) as well as the hidden grid will be
  3567.  removed.  Each surface has its hidden parts removed with respect to itself
  3568.  and to other surfaces, if more than one surface is plotted.  But contours
  3569.  drawn on the surface (`set contour surface`) don't seem to work.  Labels and
  3570.  arrows are always visible and are unaffected.
  3571. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/hidden/hidden.html"> Hidden Line Removal Demo</a> and
  3572. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/singulr/singulr.html"> Complex Hidden Line Demo. </a>
  3573. 3 isosamples
  3574. ?set isosamples
  3575. ?show isosamples
  3576. ?isosamples
  3577.  The isoline density of surfaces may be changed by the `set isosamples`
  3578.  command.
  3579.  
  3580.  Syntax:
  3581.        set isosamples <iso_1> {,<iso_2>}
  3582.        show isosamples
  3583.  
  3584.  Each surface plot will have <iso_1> iso-u lines and <iso_2> iso-v lines.  If
  3585.  you only specify <iso_1>, <iso_2> will be set to the same value as <iso_1>.
  3586.  By default, sampling is set to 10 isolines per u or v axis.  A higher
  3587.  sampling rate will produce more accurate plots, but will take longer.  These
  3588.  parameters have no effect on data file plotting.
  3589.  
  3590.  An isoline is a curve parameterized by one of the surface parameters while
  3591.  the other surface parameter is fixed.  Isolines provide a simple means to
  3592.  display a surface.  By fixing the u parameter of surface s(u,v), the iso-u
  3593.  lines of the form c(v) = s(u0,v) are produced, and by fixing the v parameter,
  3594.  the iso-v lines of the form c(u) = s(u,v0) are produced.
  3595.  
  3596.  When a surface plot is being done without the removal of hidden lines, `set
  3597.  samples` also has an effect on the number of points being evaluated---it
  3598.  controls the number of points sampled along each isoline.  See `set samples`.
  3599. 3 key
  3600. ?set key
  3601. ?set nokey
  3602. ?show key
  3603. ?key
  3604. ?nokey
  3605. ?legend
  3606.  The `set key` enables a key (or legend) describing plots on a plot.
  3607.  
  3608.  The contents of the key, i.e., the names given to each plotted data set and
  3609.  function and samples of the lines and/or symbols used to represent them, are
  3610.  determined by the `title` and `with` options of the {`s`}`plot` command.
  3611.  Please see `plot title` and `plot with` for more information.
  3612.  
  3613.  Syntax:
  3614.        set key {  left | right | top | bottom | outside | below
  3615.                 | <position>}
  3616.                {Left | Right} {{no}reverse}
  3617.                {samplen <sample_length>} {spacing <vertical_spacing>}
  3618.                {width <width_increment>}
  3619.                {title "<text>"} {{no}box {<linetype>}}
  3620.        set nokey
  3621.        show key
  3622.  
  3623.  By default the key is placed in the upper right corner of the graph.  The
  3624.  keywords `left`, `right`, `top`, `bottom`, `outside` and `below` may be used
  3625.  to place the key in the other corners inside the graph or to the right
  3626.  (outside) or below the graph.  They may be given alone or combined.
  3627.  
  3628.  Justification of the labels within the key is controlled by `Left` or `Right`
  3629.  (default is `Right`).  The text and sample can be reversed (`reverse`) and a
  3630.  box can be drawn around the key (`box {<linetype>}`) in a specified linetype.
  3631.  But note that <linetype> is an index in the default linetype list provided by
  3632.  the terminal; user-defined linetypes (via the `set linestyle` command) are
  3633.  not accessible for the key box.
  3634.  
  3635.  The length of the sample line can be controlled by `samplen`.  The sample
  3636.  length is computed as the sum of the tic length and <sample_length> times the
  3637.  character width.  `samplen` also affects the positions of point samples in
  3638.  the key since these are drawn at the midpoint of the sample line, even if it
  3639.  is not drawn.  <sample_length> must be an integer.
  3640.  
  3641.  The vertical spacing between lines is controlled by `spacing`.  The spacing
  3642.  is set equal to the product of the pointsize, the vertical tic size, and
  3643.  <vertical_spacing>.  The program will guarantee that the vertical spacing is
  3644.  no smaller than the character height.
  3645.  
  3646.  The <width_increment> is a number of character widths to be added to or
  3647.  subtracted from the length of the string.  This is useful only when you are
  3648.  putting a box around the key and you are using control characters in the text.
  3649.  `gnuplot` simply counts the number of characters in the string when computing
  3650.  the box width; this allows you to correct it.
  3651.  
  3652.  A title can be put on the key (`title "<text>"`)---see also `syntax` for the
  3653.  distinction between text in single- or double-quotes.  The key title uses the
  3654.  same justification as do the plot titles.
  3655.  
  3656.  The defaults for `set key` are `right`, `top`, `Right`, `noreverse`, `samplen
  3657.  4`, `spacing 1.25`, `title ""`, and `nobox`.  The default <linetype> is the
  3658.  same as that used for the plot borders.  Entering `set key` with no options
  3659.  returns the key to its default configuration.
  3660.  
  3661.  The <position> can be a simple x,y,z as in previous versions, but these can
  3662.  be preceded by one of four keywords (`first`, `second`, `graph`, `screen`)
  3663.  which selects the coordinate system in which the position is specified.  See
  3664.  `coordinates` for more details.
  3665.  
  3666.  The key is drawn as a sequence of lines, with one plot described on each
  3667.  line.  On the right-hand side (or the left-hand side, if `reverse` is
  3668.  selected) of each line is a representation that attempts to mimic the way the
  3669.  curve is plotted.  On the other side of each line is the text description
  3670.  (the line title), obtained from the `plot` command.  The lines are vertically
  3671.  arranged so that an imaginary straight line divides the left- and right-hand
  3672.  sides of the key.  It is the coordinates of the top of this line that are
  3673.  specified with the `set key` command.  In a `plot`, only the x and y
  3674.  coordinates are used to specify the line position.  For a `splot`, x, y and
  3675.  z are all used as a 3-d location mapped using the same mapping as the graph
  3676.  itself to form the required 2-d screen position of the imaginary line.
  3677.  
  3678.  Some or all of the key may be outside of the graph boundary, although this
  3679.  may interfere with other labels and may cause an error on some devices.  If
  3680.  you use the keywords `outside` or `below`, `gnuplot` makes space for the keys
  3681.  and the graph becomes smaller.  Putting keys outside to the right, they
  3682.  occupy as few columns as possible, and putting them below, as many columns as
  3683.  possible (depending of the length of the labels), thus stealing as little
  3684.  space from the graph as possible.
  3685.  
  3686.  When using the TeX or PostScript drivers, or similar drivers where formatting
  3687.  information is embedded in the string, `gnuplot` is unable to calculate
  3688.  correctly the width of the string for key positioning.  If the key is to be
  3689.  positioned at the left, it may be convenient to use the combination  `set key
  3690.  left Left reverse`.  The box and gap in the grid will be the width of the
  3691.  literal string.
  3692.  
  3693.  If `splot` is being used to draw contours, the contour labels will be listed
  3694.  in the key.  If the alignment of these labels is poor or a different number
  3695.  of decimal places is desired, the label format can be specified.  See `set
  3696.  clabel` for details.
  3697.  
  3698.  Examples:
  3699.  
  3700.  This places the key at the default location:
  3701.        set key
  3702.  
  3703.  This disables the key:
  3704.        set nokey
  3705.  
  3706.  This places a key at coordinates 2,3.5,2 in the default (first) coordinate
  3707.  system:
  3708.        set key 2,3.5,2
  3709.  
  3710.  This places the key below the graph:
  3711.        set key below
  3712.  
  3713.  This places the key in the bottom left corner, left-justifies the text,
  3714.  gives it a title, and draws a box around it in linetype 3:
  3715.        set key left bottom Left title 'Legend' box 3
  3716. 3 label
  3717. ?set label
  3718. ?set nolabel
  3719. ?show label
  3720. ?label
  3721. ?nolabel
  3722.  Arbitrary labels can be placed on the plot using the `set label` command.
  3723.  
  3724.  Syntax:
  3725.        set label {<tag>} {"<label_text>"} {at <position>}
  3726.                  {<justification>} {{no}rotate} {font "<name><,size>"}
  3727.        set nolabel {<tag>}
  3728.        show label
  3729.  
  3730.  The <position> is specified by either x,y or x,y,z, and may be preceded by
  3731.  `first`, `second`, `graph`, or `screen` to select the coordinate system.
  3732.  See `coordinates` for details.
  3733.  
  3734.  The tag is an integer that is used to identify the label. If no <tag> is
  3735.  given, the lowest unused tag value is assigned automatically.  The tag can be
  3736.  used to delete or modify a specific label.  To change any attribute of an
  3737.  existing label, use the `set label` command with the appropriate tag, and
  3738.  specify the parts of the label to be changed.
  3739.  
  3740.  By default, the text is placed flush left against the point x,y,z.  To adjust
  3741.  the way the label is positioned with respect to the point x,y,z, add the
  3742.  parameter <justification>, which may be `left`, `right` or `center`,
  3743.  indicating that the point is to be at the left, right or center of the text.
  3744.  Labels outside the plotted boundaries are permitted but may interfere with
  3745.  axis labels or other text.
  3746.  
  3747.  If `rotate` is given, the label is written vertically (if the terminal can do
  3748.  so, of course).
  3749.  
  3750.  If one (or more) axis is timeseries, the appropriate coordinate should be
  3751.  given as a quoted time string according to the `timefmt` format string.  See
  3752.  `set xdata` and `set timefmt`.
  3753.  
  3754.  The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3755.  a newline.
  3756.  
  3757.  Examples:
  3758.  
  3759.  To set a label at (1,2) to "y=x", use:
  3760.        set label "y=x" at 1,2
  3761.  
  3762.  To set a label of the sign Sigma of size 24 at the center of the graph, use:
  3763.        set label "S" at graph 0.5,0.5 center font "Symbol,24"
  3764.  
  3765.  To set a label "y=x^2" with the right of the text at (2,3,4), and tag the
  3766.  label as number 3, use:
  3767.        set label 3 "y=x^2" at 2,3,4 right
  3768.  
  3769.  To change the preceding label to center justification, use:
  3770.        set label 3 center
  3771.  
  3772.  To delete label number 2, use:
  3773.        set nolabel 2
  3774.  
  3775.  To delete all labels, use:
  3776.        set nolabel
  3777.  
  3778.  To show all labels (in tag order), use:
  3779.        show label
  3780.  
  3781.  To set a label on a graph with a timeseries on the x axis, use, for example:
  3782.        set timefmt "%d/%m/%y,%H:%M"
  3783.        set label "Harvest" at "25/8/93",1
  3784. 3 linestyle
  3785. ?set linestyle
  3786. ?set nolinestyle
  3787. ?show linestyle
  3788. ?linestyle
  3789.  Each terminal has a default set of line and point types, which can be seen
  3790.  by using the command `test`.  `set linestyle` defines a set of line types
  3791.  and widths and point types and sizes so that you can refer to them later by
  3792.  an index instead of repeating all the information at each invocation.
  3793.  
  3794.  Syntax:
  3795.        set linestyle <index> {linetype | lt <line_type>}
  3796.                              {linewidth | lw <line_width>}
  3797.                              {pointtype | pt <point_type>}
  3798.                              {pointsize | ps <point_size>}
  3799.        set nolinestyle
  3800.        show linestyle
  3801.  
  3802.  The line and point types are taken from the default types for the terminal
  3803.  currently in use.  The line width and point size are multipliers for the
  3804.  default width and size (but note that <point_size> here is unaffected by
  3805.  the multiplier given on 'set pointsize').
  3806.  
  3807.  The defaults for the line and point types is the index.  The defaults for
  3808.  the width and size are both unity.
  3809.  
  3810.  Linestyles created by this mechanism do not replace the default styles;
  3811.  both may be used.
  3812.  
  3813.  Not all terminals support the line width and point size features, so these
  3814.  terminals obviously cannot fully support `set linestyle`.
  3815.  
  3816.  Note that this feature is not completely installed; linestyles defined by
  3817.  this mechanism may be used with 'plot', 'splot', 'replot', and 'set arrow',
  3818.  but not by other commands that allow the default index to be used, such as
  3819.  'set grid'.
  3820.  
  3821.  Example:
  3822.  Suppose that the default lines for indices 1, 2, and 3 are red, green, and
  3823.  blue, respectively, and the default point shapes for the same indices are a
  3824.  square, a cross, and a triangle, respectively.  Then
  3825.  
  3826.        set linestyle 1 lt 2 lw 2 pt 3 ps 0.5
  3827.  
  3828.  defines a new linestyle that is green and twice the default width and a new
  3829.  pointstyle that is a half-sized triangle.  The commands
  3830.  
  3831.        set function style lines
  3832.        plot f(x) lt 3, g(x) ls 1
  3833.  
  3834.  will create a plot of f(x) using the default blue line and a plot of g(x)
  3835.  using the user-defined wide green line.  Similarly the commands
  3836.  
  3837.        set function style linespoints
  3838.        plot p(x) lt 1 pt 3, q(x) ls 1
  3839.  
  3840.  will create a plot of f(x) using the default triangles connected by a red
  3841.  line and q(x) using small triangles connected by a green line.
  3842. 3 lmargin
  3843. ?set lmargin
  3844. ?lmargin
  3845.  The command `set lmargin` sets the size of the left margin.  Please see
  3846.  `set margin` for details.
  3847. 3 locale
  3848. ?set locale
  3849. ?show logscale
  3850. ?locale
  3851.  The `locale` setting determines the language with which `{x,y,z}{d,m}tics`
  3852.  will write the days and months.
  3853.  
  3854.  Syntax:
  3855.        set locale {"<locale>"}
  3856.  
  3857.  <locale> may be any language designation acceptable to your installation.
  3858.  See your system documentation for the available options.  The default value
  3859.  is determined from the LANG environment variable.
  3860. 3 logscale
  3861. ?set logscale
  3862. ?set nologscale
  3863. ?show logscale
  3864. ?logscale
  3865. ?nologscale
  3866.  Log scaling may be set on the x, y, z, x2 and/or y2 axes.
  3867.  
  3868.  Syntax:
  3869.        set logscale <axes> <base>
  3870.        set nologscale <axes>
  3871.        show logscale
  3872.  
  3873.  where <axes> may be any combinations of `x`, `y`, and `z`, in any order, or
  3874.  `x2` or `y2` and where <base> is the base of the log scaling.  If <base> is
  3875.  not given, then 10 is assumed.  If <axes> is not given, then all axes are
  3876.  assumed.  `set nologscale` turns off log scaling for the specified axes.
  3877.  
  3878.  Examples:
  3879.  
  3880.  To enable log scaling in both x and z axes:
  3881.        set logscale xz
  3882.  
  3883.  To enable scaling log base 2 of the y axis:
  3884.        set logscale y 2
  3885.  
  3886.  To disable z axis log scaling:
  3887.        set nologscale z
  3888. 3 mapping
  3889. ?set mapping
  3890. ?show mapping
  3891. ?mapping
  3892.  If data are provided to `splot` in spherical or cylindrical coordinates,
  3893.  the `set mapping` command should be used to instruct `gnuplot` how to
  3894.  interpret them.
  3895.  
  3896.  Syntax:
  3897.        set mapping {cartesian | spherical | cylindrical}
  3898.  
  3899.  A cartesian coordinate system is used by default.
  3900.  
  3901.  For a spherical coordinate system, the data occupy two or three columns (or
  3902.  `using` entries).  The first two are interpreted as the polar and azimuthal
  3903.  angles theta and phi (in the units specified by `set angles`).  The radius r
  3904.  is taken from the third column if there is one, or is set to unity if there
  3905.  is no third column.  The mapping is:
  3906.  
  3907.        x = r * cos(theta) * cos(phi)
  3908.        y = r * sin(theta) * cos(phi)
  3909.        z = r * sin(phi)
  3910.  
  3911.  Note that this is a "geographic" spherical system, rather than a "polar" one.
  3912.  
  3913.  For a cylindrical coordinate system, the data again occupy two or three
  3914.  columns.  The first two are interpreted as theta (in the units specified by
  3915.  `set angles`) and z.  The radius is either taken from the third column or set
  3916.  to unity, as in the spherical case.  The mapping is:
  3917.  
  3918.        x = r * cos(theta)
  3919.        y = r * sin(theta)
  3920.        z = z
  3921.  
  3922.  The effects of `mapping` can be duplicated with the `using` filter on the
  3923.  `splot` command, but `mapping` may be more convenient if many data files are
  3924.  to be processed.  However even if `mapping` is used, `using` may still be
  3925.  necessary if the data in the file are not in the required order.
  3926.  
  3927.  `mapping` has no effect on `plot`s.
  3928. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/world/world.html">Mapping Demos.</a>
  3929. 3 margin
  3930. ?set margin
  3931. ?show margin
  3932. ?margin
  3933.  Normally the margins of the plot are automatically calculated based on tics
  3934.  and axis labels.  These computed values can be overridden by the `set margin`
  3935.  commands.  `show margin` shows the current settings.
  3936.  
  3937.  Syntax:
  3938.        set bmargin {<margin>}
  3939.        set lmargin {<margin>}
  3940.        set rmargin {<margin>}
  3941.        set tmargin {<margin>}
  3942.        show margin
  3943.  
  3944.  The units of <margin> are character heights or widths, as appropriate.  A
  3945.  positive value defines the absolute size of the margin.  A negative value (or
  3946.  none) causes `gnuplot` to revert to the computed value.
  3947. 3 missing
  3948. ?set missing
  3949. ?missing
  3950.  The `set missing` command allows you to tell `gnuplot` what character is
  3951.  used in a data file to denote missing data.
  3952.  
  3953.  Syntax:
  3954.        set missing {"<character>"}
  3955.        show missing
  3956.  
  3957.  Example:
  3958.        set missing "?"
  3959.  
  3960.  would mean that, when plotting a file containing
  3961.  
  3962.           1 1
  3963.           2 ?
  3964.           3 2
  3965.  
  3966.  the middle line would be ignored.
  3967.  
  3968.  There is no default character for `missing`.
  3969. 3 multiplot
  3970. ?set multiplot
  3971. ?multiplot
  3972. ?set nomultiplot
  3973.  The command `set multiplot` places `gnuplot` in the multiplot mode, in which
  3974.  several plots are placed on the same page, window, or screen.
  3975.  
  3976.  Syntax:
  3977.        set multiplot
  3978.        set nomultiplot
  3979.  
  3980.  For some terminals, no plot is displayed until the command `set nomultiplot`
  3981.  is given, which causes the entire page to be drawn and then returns `gnuplot`
  3982.  to its normal single-plot mode.  For other terminals, each separate `plot`
  3983.  command produces a plot, but the screen may not be cleared between plots.
  3984.  
  3985.  Any labels or arrows that have been defined will be drawn for each plot
  3986.  according to the current size and origin (unless their coordinates are
  3987.  defined in the `screen` system).  Just about everything else that can be
  3988.  `set` is applied to each plot, too.  If you want something to appear only
  3989.  once on the page, for instance a single time stamp, you'll need to put a `set
  3990.  time`/`set notime` pair around one of the `plot`, `splot` or `replot`
  3991.  commands within the `set multiplot`/`set nomultiplot` block.
  3992.  
  3993.  The commands `set origin` and `set size` must be used to correctly position
  3994.  each plot; see `set origin` and `set size` for details of their usage.
  3995.  
  3996.  Example:
  3997.        set size 0.7,0.7
  3998.        set origin 0.1,0.1
  3999.        set multiplot
  4000.        set size 0.4,0.4
  4001.        set origin 0.1,0.1
  4002.        plot sin(x)
  4003.        set size 0.2,0.2
  4004.        set origin 0.5,0.5
  4005.        plot cos(x)
  4006.        set nomultiplot
  4007.  
  4008.  displays a plot of cos(x) stacked above a plot of sin(x).  Note the initial
  4009.  `set size` and `set origin`.  While these are not always required, their
  4010.  inclusion is recommended.  Some terminal drivers require that bounding box
  4011.  information be available before any plots can be made, and the form given
  4012.  above guarantees that the bounding box will include the entire plot array
  4013.  rather than just the bounding box of the first plot.
  4014.  
  4015.  `set size` and `set origin` refer to the entire plotting area used for each
  4016.  plot.  If you want to have the axes themselves line up, perhaps to avoid
  4017.  having to label all of them, you need to guarantee that the margins are the
  4018.  same size.  This can be done with the `set margin` commands.  Please see `set
  4019.  margin` for their use.
  4020. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/multiplot/multiplt.html"> See demo. </a>
  4021. 3 mx2tics
  4022. ?set mx2tics
  4023. ?set nomx2tics
  4024. ?show mx2tics
  4025. ?mx2tics
  4026. ?nomx2tics
  4027.  Minor tic marks along the x2 (top) axis are controlled by `set mx2tics`.
  4028.  Please see `set mxtics`.
  4029. 3 mxtics
  4030. ?set mxtics
  4031. ?set nomxtics
  4032. ?show mxtics
  4033. ?mxtics
  4034. ?nomxtics
  4035.  Minor tic marks along the x axis are controlled by `set mxtics`.  They can be
  4036.  turned off with `set nomxtics`.  Similar commands control minor tics along
  4037.  the other axes.
  4038.  
  4039.  Syntax:
  4040.        set mxtics {<freq> | default}
  4041.        set nomxtics
  4042.        show mxtics
  4043.  
  4044.  The same syntax applies to `mytics`, `mztics`, `mx2tics` and `my2tics`.
  4045.  
  4046.  <freq> is the number of sub-intervals (NOT the number of minor tics) between
  4047.  major tics (ten is the default for a linear axis, so there are nine minor
  4048.  tics between major tics). Selecting `default` will return the number of minor
  4049.  ticks to its default value.
  4050.  
  4051.  If the axis is logarithmic, the number of sub-intervals will be set to a
  4052.  reasonable number by default (based upon the length of a decade).  This will
  4053.  be overridden if <freq> is given.  However the usual minor tics (2, 3, ...,
  4054.  8, 9 between 1 and 10, for example) are obtained by setting <freq> to 10,
  4055.  even though there are but nine sub-intervals.
  4056.  
  4057.  Minor tics can be used only with uniformly spaced major tics.  Since major
  4058.  tics can be placed arbitrarily by `set {x|x2|y|y2|z}tics`, minor tics cannot
  4059.  be used if major tics are explicitly `set`.
  4060.  
  4061.  By default, minor tics are off for linear axes and on for logarithmic axes.
  4062.  They inherit the settings for `axis|border` and `{no}mirror` specified for
  4063.  the major tics.  Please see `set xtics` for information about these.
  4064. 3 my2tics
  4065. ?set my2tics
  4066. ?set nomy2tics
  4067. ?show my2tics
  4068. ?my2tics
  4069. ?nomy2tics
  4070.  Minor tic marks along the y2 (right-hand) axis are controlled by `set
  4071.  my2tics`.  Please see `set mxtics`.
  4072. 3 mytics
  4073. ?set mytics
  4074. ?set nomytics
  4075. ?show mytics
  4076. ?mytics
  4077. ?nomytics
  4078.  Minor tic marks along the y axis are controlled by `set mytics`.  Please
  4079.  see `set mxtics`.
  4080. 3 mztics
  4081. ?set mztics
  4082. ?set nomztics
  4083. ?show mztics
  4084. ?mztics
  4085. ?nomztics
  4086.  Minor tic marks along the z axis are controlled by `set mztics`.  Please
  4087.  see `set mxtics`.
  4088. 3 offsets
  4089. ?set offsets
  4090. ?set nooffsets
  4091. ?show offsets
  4092. ?offsets
  4093. ?nooffsets
  4094.  Offsets provide a mechanism to put a boundary around the data inside of an
  4095.  autoscaled graph.
  4096.  
  4097.  Syntax:
  4098.        set offsets <left>, <right>, <top>, <bottom>
  4099.        set nooffsets
  4100.        show offsets
  4101.  
  4102.  Each offset may be a constant or an expression.  Each defaults to 0.  Left
  4103.  and right offsets are given in units of the x axis, top and bottom offsets in
  4104.  units of the y axis.  A positive offset expands the graph in the specified
  4105.  direction, e.g., a positive bottom offset makes ymin more negative.  Negative
  4106.  offsets, while permitted, can have unexpected interactions with autoscaling
  4107.  and clipping.
  4108.  
  4109.  Offsets are ignored in `splot`s.
  4110.  
  4111.  Example:
  4112.        set offsets 0, 0, 2, 2
  4113.        plot sin(x)
  4114.  
  4115.  This graph of sin(x) will have a y range [-3:3] because the function
  4116.  will be autoscaled to [-1:1] and the vertical offsets are each two.
  4117. 3 origin
  4118. ?set origin
  4119. ?show origin
  4120. ?origin
  4121.  The `set origin` command is used to specify the origin of a plotting surface
  4122.  (i.e., the graph and its margins) on the screen.  The coordinates are given
  4123.  in the `screen` coordinate system (see `coordinates` for information about
  4124.  this system).
  4125.  
  4126.  Syntax:
  4127.        set origin <x-origin>,<y-origin>
  4128. 3 output
  4129. ?set output
  4130. ?show output
  4131. ?output
  4132.  By default, screens are displayed to the standard output. The `set output`
  4133.  command redirects the display to the specified file or device.
  4134.  
  4135.  Syntax:
  4136.        set output {"<filename>"}
  4137.        show output
  4138.  
  4139.  The filename must be enclosed in quotes.  If the filename is omitted, any
  4140.  output file opened by a previous invocation of `set output` will be closed
  4141.  and new output will be sent to STDOUT.  (If you give the command `set output
  4142.  "STDOUT"`, your output may be sent to a file named "STDOUT"!  ["May be", not
  4143.  "will be", because some terminals, like `x11`, ignore `set output`.])
  4144.  
  4145.  MSDOS users should note that the \ character has special significance in
  4146.  double-quoted strings, so single-quotes should be used for filenames in
  4147.  different directories.
  4148.  
  4149.  When both `set terminal` and `set output` are used together, it is safest to
  4150.  give `set terminal` first, because some terminals set a flag which is needed
  4151.  in some operating systems.  This would be the case, for example, if the
  4152.  operating system needs to know whether or not a file is to be formatted in
  4153.  order to open it properly.
  4154.  
  4155.  On machines with popen functions (Unix), output can be piped through a shell
  4156.  command if the first character of the filename is '|'.  For instance,
  4157.  
  4158.        set output "|lpr -Plaser filename"
  4159.        set output "|lp -dlaser filename"
  4160.  
  4161.  On MSDOS machines, `set output "PRN"` will direct the output to the default
  4162.  printer.  On VMS, output can be sent directly to any spooled device.  It is
  4163.  also possible to send the output to DECnet transparent tasks, which allows
  4164.  some flexibility.
  4165. 3 parametric
  4166. ?set parametric
  4167. ?set noparametric
  4168. ?show parametric
  4169. ?parametric
  4170. ?noparametric
  4171.  The `set parametric` command changes the meaning of `plot` (`splot`) from
  4172.  normal functions to parametric functions.  The command `set noparametric`
  4173.  restores the plotting style to normal, single-valued expression plotting.
  4174.  
  4175.  Syntax:
  4176.        set parametric
  4177.        set noparametric
  4178.        show parametric
  4179.  
  4180.  For 2-d plotting, a parametric function is determined by a pair of parametric
  4181.  functions operating on a parameter.  An example of a 2-d parametric function
  4182.  would be `plot sin(t),cos(t)`, which draws a circle (if the aspect ratio is
  4183.  set correctly---see `set size`).  `gnuplot` will display an error message if
  4184.  both functions are not provided for a parametric `plot`.
  4185.  
  4186.  For 3-d plotting, the surface is described as x=f(u,v), y=g(u,v), z=h(u,v).
  4187.  Therefore a triplet of functions is required.  An example of a 3-d parametric
  4188.  function would be `cos(u)*cos(v),cos(u)*sin(v),sin(u)`, which draws a sphere.
  4189.  `gnuplot` will display an error message if all three functions are not
  4190.  provided for a parametric `splot`.
  4191.  
  4192.  The total set of possible plots is a superset of the simple f(x) style plots,
  4193.  since the two functions can describe the x and y values to be computed
  4194.  separately.  In fact, plots of the type t,f(t) are equivalent to those
  4195.  produced with f(x) because the x values are computed using the identity
  4196.  function.  Similarly, 3-d plots of the type u,v,f(u,v) are equivalent to
  4197.  f(x,y).
  4198.  
  4199.  Note that the order the parametric functions are specified is xfunction,
  4200.  yfunction (and zfunction) and that each operates over the common parametric
  4201.  domain.
  4202.  
  4203.  Also, the `set parametric` function implies a new range of values.  Whereas
  4204.  the normal f(x) and f(x,y) style plotting assume an xrange and yrange (and
  4205.  zrange), the parametric mode additionally specifies a trange, urange, and
  4206.  vrange.  These ranges may be set directly with `set trange`, `set urange`,
  4207.  and `set vrange`, or by specifying the range on the `plot` or `splot`
  4208.  commands.  Currently the default range for these parametric variables is
  4209.  [-5:5].  Setting the ranges to something more meaningful is expected.
  4210. 3 pointsize
  4211. ?set pointsize
  4212. ?show pointsize
  4213. ?pointsize
  4214.  The `set pointsize` command changes the size of the points used in plots.
  4215.  
  4216.  Syntax:
  4217.        set pointsize <pointsize>
  4218.        show pointsize
  4219.  
  4220.  Default is pointsize 1.0.  Larger pointsizes (>1.0) are useful for high
  4221.  resolution in bitmapped graphics.
  4222.  
  4223.  The pointsize of a single plot may be changed on the `plot` command.  See
  4224.  `plot with` for details.
  4225.  
  4226.  Please note that the pointsize setting is not supported with all terminal
  4227.  types.
  4228. 3 polar
  4229. ?set polar
  4230. ?set nopolar
  4231. ?show polar
  4232. ?polar
  4233. ?nopolar
  4234.  The `set polar` command changes the meaning of the plot from rectangular
  4235.  coordinates to polar coordinates.
  4236.  
  4237.  Syntax:
  4238.        set polar
  4239.        set nopolar
  4240.        show polar
  4241.  
  4242.  There have been changes made to polar mode in version 3.6, so that scripts
  4243.  for `gnuplot` versions 3.5 and earlier will require modification.  The main
  4244.  change is that the dummy variable t is used for the angle so that the x and
  4245.  y ranges can be controlled independently.  Other changes are:
  4246.  1) tics are no longer put along the zero axes automatically
  4247.  ---use `set xtics axis nomirror`; `set ytics axis nomirror`;
  4248.  2) the grid, if selected, is not automatically polar
  4249.  ---use `set grid polar`;
  4250.  3) the grid is not labelled with angles
  4251.  ---use `set label` as necessary.
  4252.  
  4253.  In polar coordinates, the dummy variable (t) is an angle.  The default range
  4254.  of t is [0:2*pi], or, if degree units have been selected, to [0:360] (see
  4255.  `set angles`).
  4256.  
  4257.  The command `set nopolar` changes the meaning of the plot back to the default
  4258.  rectangular coordinate system.
  4259.  
  4260.  The `set polar` command is not supported for `splot`s.  See the `set mapping`
  4261.  command for similar functionality for `splot`s.
  4262.  
  4263.  While in polar coordinates the meaning of an expression in t is really
  4264.  r = f(t), where t is an angle of rotation.  The trange controls the domain
  4265.  (the angle) of the function, and the x and y ranges control the range of the
  4266.  graph in the x and y directions.  Each of these ranges, as well as the
  4267.  rrange, may be autoscaled or set explicitly.  See `set xrange` for details
  4268.  of all the `set range` commands.
  4269.  
  4270.  Example:
  4271.        set polar
  4272.        plot t*sin(t)
  4273.        plot [-2*pi:2*pi] [-3:3] [-3:3] t*sin(t)
  4274.  
  4275.  The first `plot` uses the default polar angular domain of 0 to 2*pi.  The
  4276.  radius and the size of the graph are scaled automatically.  The second `plot`
  4277.  expands the domain, and restricts the size of the graph to [-3:3] in both
  4278.  directions.
  4279.  
  4280.  You may want to `set size square` to have `gnuplot` try to make the aspect
  4281.  ratio equal to unity, so that circles look circular.
  4282. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/polar/polar.html">Polar demos </a>
  4283. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/poldat/poldat.html">Polar Data Plot. </a>
  4284. 3 rmargin
  4285. ?set rmargin
  4286. ?rmargin
  4287.  The command `set rmargin` sets the size of the right margin.  Please see
  4288.  `set margin` for details.
  4289. 3 rrange
  4290. ?set rrange
  4291. ?show rrange
  4292. ?rrange
  4293.  The `set rrange` command sets the range of the radial coordinate for a
  4294.  graph in polar mode.  Please see `set xrange` for details.
  4295. 3 samples
  4296. ?set samples
  4297. ?show samples
  4298. ?samples
  4299.  The sampling rate of functions may be changed by the `set samples` command.
  4300.  
  4301.  Syntax:
  4302.        set samples <samples_1> {,<samples_2>}
  4303.        show samples
  4304.  
  4305.  By default, sampling is set to 100 points.  A higher sampling rate will
  4306.  produce more accurate plots, but will take longer.  This parameter has no
  4307.  effect on data-file plotting unless one of the `smooth` options is used.
  4308.  
  4309.  When a 2-d graph is being done, only the value of <samples_1> is relevant.
  4310.  
  4311.  When a surface plot is being done without the removal of hidden lines, the
  4312.  value of samples specifies the number of samples that are to be evaluated for
  4313.  isoline.  Each iso-v line will have <sample_1> samples and each iso-u line
  4314.  will have <sample_2> samples.  If you only specify <samples_1>, <samples_2>
  4315.  will be set to the same value as <samples_1>.  See also `set isosamples`.
  4316. 3 size
  4317. ?set size
  4318. ?show size
  4319. ?size
  4320.  The `set size` command scales the displayed size of the plot.
  4321.  
  4322.  Syntax:
  4323.        set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
  4324.        show size
  4325.  
  4326.  The <xscale> and <yscale> values are the scaling factors for the size of the
  4327.  plot, which includes the graph and the margins.
  4328.  
  4329.  `ratio` causes `gnuplot` to try to create a graph with an aspect ratio of <r>
  4330.  (the ratio of the y-axis length to the x-axis length) within the portion of
  4331.  the plot specified by <xscale> and <yscale>.
  4332.  
  4333.  The meaning of a negative value for <r> is different.  If <r>=-1, gnuplot
  4334.  tries to set the scales so that the unit has the same length on both the x
  4335.  and y axes (suitable for geographical data, for instance).  If <r>=-2, the
  4336.  unit on y has twice the length of the unit on x, and so on.
  4337.  
  4338.  The success of `gnuplot` in producing the requested aspect ratio depends on
  4339.  the terminal selected.  The graph area will be the largest rectangle of
  4340.  aspect ratio <r> that will fit into the specified portion of the output
  4341.  (leaving adequate margins, of course).
  4342.  
  4343.  `square` is a synonym for `ratio 1`.
  4344.  
  4345.  Both `noratio` and `nosquare` return the graph to its default aspect ratio
  4346.  (1.0), but do not return <xscale> or <yscale> to their default values (also
  4347.  1.0).
  4348.  
  4349.  `ratio` and `square` have no effect on 3-d plots.
  4350.  
  4351.  `set size` is relative to the default size, which differs from terminal to
  4352.  terminal.  Since `gnuplot` fills as much of the available plotting area as
  4353.  possible by default, it is safer to use `set size` to decrease the size of
  4354.  a plot than to increase it.  See `set terminal` for the default sizes.
  4355.  
  4356.  On some terminals, changing the size of the plot will result in text being
  4357.  misplaced.
  4358.  
  4359.  Examples:
  4360.  
  4361.  To set the size to normal size use:
  4362.        set size 1,1
  4363.  
  4364.  To make the graph half size and square use:
  4365.        set size square 0.5,0.5
  4366.  
  4367.  To make the graph twice as high as wide use:
  4368.        set size ratio 2
  4369.  
  4370. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/airfoil/airfoil.html"> See demo. </a>
  4371. 3 style
  4372. ?set function style
  4373. ?show function style
  4374. ?set data style
  4375. ?show data style
  4376. ?set style
  4377. ?show style
  4378.  Default styles are chosen with the `set function style` and `set data style`
  4379.  commands.  See `plot with` for information about how to override the default
  4380.  plotting style for individual functions and data sets.
  4381.  
  4382.  Syntax:
  4383.        set function style <style>
  4384.        set data style <style>
  4385.        show function style
  4386.        show data style
  4387.  
  4388.  The types used for all line and point styles (i.e., solid, dash-dot, color,
  4389.  etc. for lines; circles, squares, crosses, etc. for points) will be either
  4390.  those specified on the `plot` or `splot` command or will be chosen
  4391.  sequentially from the types available to the terminal in use.  Use the
  4392.  command `test` to see what is available.
  4393.  
  4394.  None of the styles requiring more than two columns of information (e.g.,
  4395.  `errorbars`) can be used with `splot`s or function `plot`s.  Neither `boxes`
  4396.  nor any of the `steps` styles can be used with `splot`s.  If an inappropriate
  4397.  style is specified, it will be changed to `points`.
  4398.  
  4399.  For 2-d data with more than two columns, `gnuplot` is picky about the allowed
  4400.  `errorbar` styles.  The `using` option on the `plot` command can be used to
  4401.  set up the correct columns for the style you want.  (In this discussion,
  4402.  "column" will be used to refer both to a column in the data file and an entry
  4403.  in the `using` list.)
  4404.  
  4405.  For three columns, only `xerrorbars`, `yerrorbars` (or `errorbars`), `boxes`,
  4406.  and `boxerrorbars` are allowed.  If another plot style is used, the style
  4407.  will be changed to `yerrorbars`.  The `boxerrorbars` style will calculate the
  4408.  boxwidth automatically.
  4409.  
  4410.  For four columns, only `xerrorbars`, `yerrorbars` (or `errorbars`),
  4411.  `xyerrorbars`, `boxxyerrorbars`, and `boxerrorbars` are allowed.  An illegal
  4412.  style will be changed to `yerrorbars`.
  4413.  
  4414.  Five-column data allow only the `boxerrorbars`, `financebars`, and
  4415.  `candlesticks` styles.  (The last two of these are primarily used for plots
  4416.  of financial prices.)  An illegal style will be changed to `boxerrorbars`
  4417.  before plotting.
  4418.  
  4419.  Six- and seven-column data only allow the `xyerrorbars` and `boxxyerrorbars`
  4420.  styles.  Illegal styles will be changed to `xyerrorbars` before plotting.
  4421.  
  4422.  For more information about error bars, please see `plot errorbars`.
  4423. 4 boxerrorbars
  4424. ?set style boxerrorbars
  4425. ?style boxerrorbars
  4426. ?boxerrorbars
  4427.  The `boxerrorbars` style is only relevant to 2-d data plotting.  It is a
  4428.  combination of the `boxes` and `yerrorbars` styles.  The boxwidth will come
  4429.  from the fourth column if the y errors are in the form of "ydelta" and the
  4430.  boxwidth was not previously set equal to -2.0 (`set boxwidth -2.0`) or from
  4431.  the fifth column if the y errors are in the form of "ylow yhigh".  The
  4432.  special case  `boxwidth = -2.0` is for four-column data with y errors in the
  4433.  form "ylow yhigh".  In this case the boxwidth will be calculated so that each
  4434.  box touches the adjacent boxes.  The width will also be calculated in cases
  4435.  where three-column data are used.
  4436.  
  4437.  The box height is determined from the y error in the same way as it is for
  4438.  the `yerrorbars` style---either from y-ydelta to y+ydelta or from ylow to
  4439.  yhigh, depending on how many data columns are provided.
  4440. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/errorbar/errorbar.html"> See Demo. </a>
  4441. 4 boxes
  4442. ?set style boxes
  4443. ?style boxes
  4444. ?boxes
  4445. ?set style bargraph
  4446. ?style bargraph
  4447. ?bargraph
  4448.  The `boxes` style is only relevant to 2-d plotting.  It draws a box centered
  4449.  about the given x coordinate from the x axis (not the graph border) to the
  4450.  given y coordinate.  The width of the box is obtained in one of three ways.
  4451.  If it is a data plot and the data file has a third column, this will be used
  4452.  to set the width of the box.  If not, if a width has been set using the `set
  4453.  boxwidth` command, this will be used.  If neither of these is available, the
  4454.  width of each box will be calculated automatically so that it touches the
  4455.  adjacent boxes.
  4456. 4 boxxyerrorbars
  4457. ?set style boxxyerrorbars
  4458. ?style boxxyerrorbars
  4459. ?boxxyerrorbars
  4460.  The `boxxyerrorbars` style is only relevant to 2-d data plotting.  It is a
  4461.  combination of the `boxes` and `xyerrorbars` styles.
  4462.  
  4463.  The box width and height are determined from the x and y errors in the same
  4464.  way as they are for the `xyerrorbars` style---either from xlow to xhigh and
  4465.  from ylow to yhigh, or from x-xdelta to x+xdelta and from y-ydelta to
  4466.  y+ydelta , depending on how many data columns are provided.
  4467. 4 candlesticks
  4468. ?set style candlesticks
  4469. ?style candlesticks
  4470. ?candlesticks
  4471.  The `candlesticks` style is only relevant for 2-d data plotting of financial
  4472.  data.  Five columns of data are required; in order, these should be the x
  4473.  coordinate (most likely a date) and the opening, low, high, and closing
  4474.  prices.  The symbol is an open rectangle, centered horizontally at the x
  4475.  coordinate and limited vertically by the opening and closing prices.  A
  4476.  vertical line segment at the x coordinate extends up from the top of the
  4477.  rectangle to the high price and another down to the low.  The width of the
  4478.  rectangle may be changed by `set bar`.  The symbol will be unchanged if the
  4479.  low and high prices are interchanged or if the opening and closing prices
  4480.  are interchanged.  See `set bar` and `financebars`.
  4481. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/finance/finance.html"> See demos.</a>
  4482. 4 dots
  4483. ?set style dots
  4484. ?style dots
  4485. ?dots
  4486.  The `dots` style plots a tiny dot at each point; this is useful for scatter
  4487.  plots with many points.
  4488. 4 financebars
  4489. ?set style financebars
  4490. ?style financebars
  4491. ?financebars
  4492.  The `financebars` style is only relevant for 2-d data plotting of financial
  4493.  data.  Five columns of data are required; in order, these should be the x
  4494.  coordinate (most likely a date) and the opening, low, high, and closing
  4495.  prices.  The symbol is a vertical line segment, located horizontally at the x
  4496.  coordinate and limited vertically by the high and low prices.  A horizontal
  4497.  tic on the left marks the opening price and one on the right marks the
  4498.  closing price.  The length of these tics may be changed by `set bar`.  The
  4499.  symbol will be unchanged if the high and low prices are interchanged.  See
  4500.  `set bar` and `candlesticks`.
  4501. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/finance/finance.html"> See demos.</a>
  4502. 4 fsteps
  4503. ?set style fsteps
  4504. ?style fsteps
  4505. ?fsteps
  4506.  The `fsteps` style is only relevant to 2-d plotting.  It connects consecutive
  4507.  points with two line segments: the first from (x1,y1) to (x1,y2) and the
  4508.  second from (x1,y2) to (x2,y2).
  4509. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/steps/steps.html"> See demo. </a>
  4510. 4 histeps
  4511. ?set style histeps
  4512. ?style histeps
  4513. ?histeps
  4514.  The `histeps` style is only relevant to 2-d plotting.  It is intended for
  4515.  plotting histograms.  Y-values are assumed to be centered at the x-values;
  4516.  the point at x1 is represented as a horizontal line from ((x0+x1)/2,y1) to
  4517.  ((x1+x2)/2,y1).  The lines representing the end points are extended so that
  4518.  the step is centered on at x.  Adjacent points are connected by a vertical
  4519.  line at their average x, that is, from ((x1+x2)/2,y1) to ((x1+x2)/2,y2).
  4520.  
  4521.  If `autoscale` is in effect, it selects the xrange from the data rather than
  4522.  the steps, so the end points will appear only half as wide as the others.
  4523. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/steps/steps.html"> See demo. </a>
  4524.  
  4525.  `histeps` is only a plotting style; `gnuplot` does not have the ability to
  4526.  create bins and determine their population from some data set.
  4527. 4 impulses
  4528. ?set style impulses
  4529. ?style impulses
  4530. ?impulses
  4531.  The `impulses` style displays a vertical line from the x axis (not the graph
  4532.  border), or from the grid base for `splot`, to each point.
  4533. 4 lines
  4534. ?set style lines
  4535. ?style lines
  4536. ?lines
  4537.  The `lines` style connects adjacent points with straight line segments.
  4538. 4 linespoints
  4539. ?set style linespoints
  4540. ?set style lp
  4541. ?style linespoints
  4542. ?style lp
  4543. ?linespoints
  4544. ?lp
  4545.  The `linespoints` style does both `lines` and `points`, that is, it draws a
  4546.  small symbol at each point and then connects adjacent points with straight
  4547.  line segments.  The command `set pointsize` may be used to change the size of
  4548.  the points.  See `set pointsize` for its usage.
  4549.  
  4550.  `linespoints` may be abbreviated `lp`.
  4551. 4 points
  4552. ?set style points
  4553. ?style points
  4554. ?points
  4555.  The `points` style displays a small symbol at each point.  The command `set
  4556.  pointsize` may be used to change the size of the points.  See `set pointsize`
  4557.  for its usage.
  4558. 4 steps
  4559. ?set style steps
  4560. ?style steps
  4561. ?steps
  4562.  The `steps` style is only relevant to 2-d plotting.  It connects consecutive
  4563.  points with two line segments: the first from (x1,y1) to (x2,y1) and the
  4564.  second from (x2,y1) to (x2,y2).
  4565. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/steps/steps.html"> See demo. </a>
  4566. 4 vector
  4567. ?set style vector
  4568. ?style vector
  4569. ?vector
  4570.  The `vector` style draws a vector from (x,y) to (x+xdelta,y+ydelta).  Thus
  4571.  it requires four columns of data.  It also draws a small arrowhead at the
  4572.  end of the vector.
  4573.  
  4574.  The `vector` style is still experimental: it doesn't get clipped properly
  4575.  and other things may also be wrong with it.  Use it at your own risk.
  4576. 4 xerrorbars
  4577. ?set style xerrorbars
  4578. ?style xerrorbars
  4579. ?xerrorbars
  4580.  The `xerrorbars` style is only relevant to 2-d data plots.  `xerrorbars` is
  4581.  like `dots`, except that a horizontal error bar is also drawn.  At each point
  4582.  (x,y), a line is drawn from (xlow,y) to (xhigh,y) or from (x-xdelta,y) to
  4583.  (x+xdelta,y), depending on how many data columns are provided.  A tic mark
  4584.  is placed at the ends of the error bar (unless `set bar` is used---see `set
  4585.  bar` for details).
  4586. 4 xyerrorbars
  4587. ?set style xyerrorbars
  4588. ?style xyerrorbars
  4589. ?xyerrorbars
  4590.  The `xyerrorbars` style is only relevant to 2-d data plots.  `xyerrorbars` is
  4591.  like `dots`, except that horizontal and vertical error bars are also drawn.
  4592.  At each point (x,y), lines are drawn from (x,y-ydelta) to (x,y+ydelta) and
  4593.  from (x-xdelta,y) to (x+xdelta,y) or from (x,ylow) to (x,yhigh) and from
  4594.  (xlow,y) to (xhigh,y), depending upon the number of data columns provided.  A
  4595.  tic mark is placed at the ends of the error bar (unless `set bar` is
  4596.  used---see `set bar` for details).
  4597.  
  4598.  If data are provided in an unsupported mixed form, the `using` filter on the
  4599.  `plot` command should be used to set up the appropriate form.  For example,
  4600.  if the data are of the form (x,y,xdelta,ylow,yhigh), then you can use
  4601.  
  4602.        plot 'data' using 1:2:($1-$3),($1+$3),4,5 with xyerrorbars
  4603. 4 yerrorbars
  4604. ?set style yerrorbars
  4605. ?style yerrorbars
  4606. ?yerrorbars
  4607. ?set style errorbars
  4608. ?style errorbars
  4609. ?errorbars
  4610.  The `yerrorbars` (or `errorbars`) style is only relevant to 2-d data plots.
  4611.  `yerrorbars` is like `dots`, except that a vertical error bar is also drawn.
  4612.  At each point (x,y), a line is drawn from (x,y-ydelta) to (x,y+ydelta) or
  4613.  from (x,ylow) to (x,yhigh), depending on how many data columns are provided.
  4614.  A tic mark is placed at the ends of the error bar (unless `set bar` is
  4615.  used---see `set bar` for details).
  4616. ^<a href="http://www.nas.nasa.gov/~woo/gnuplot/errorbar/errorbar.html"> See demo. </a>
  4617. 3 surface
  4618. ?set surface
  4619. ?set nosurface
  4620. ?show surface
  4621. ?surface
  4622. ?nosurface
  4623.  The command `set surface` controls the display of surfaces, which are drawn
  4624.  as a mesh of isolines.
  4625.  
  4626.  Syntax:
  4627.        set surface
  4628.        set nosurface
  4629.        show surface
  4630.  
  4631.  Whenever `set nosurface` is issued, no surface isolines/mesh will be drawn.
  4632.  This is useful if contours are to be displayed by themselves.  See also `set
  4633.  contour`.
  4634. ^ <h2> Terminal Types </h2>
  4635. 3 terminal
  4636. ?set terminal
  4637. ?set term
  4638. ?show terminal
  4639. ?terminal
  4640. ?term
  4641.  `gnuplot` supports many different graphics devices.  Use `set terminal` to
  4642.  tell `gnuplot` what kind of output to generate.
  4643.  
  4644.  Syntax:
  4645.        set terminal {<terminal-type>}
  4646.        show terminal
  4647.  
  4648.  If <terminal-type> is omitted, `gnuplot` will list the available terminal
  4649.  types.  <terminal-type> may be abbreviated.
  4650.  
  4651.  Use `set output` to redirect this output to a file or device.
  4652.  
  4653.  If both `set terminal` and `set output` are used together, it is safest to
  4654.  give `set terminal` first, because some terminals set a flag which is needed
  4655.  in some operating systems.
  4656.  
  4657.  Several terminals have additional options.  For example, see `dumb`,
  4658.  `iris4d`, `hpljii` or `postscript`.
  4659.  
  4660.  This document may describe drivers that are not available to you because they
  4661.  were not installed, or it may not describe all the drivers that are available
  4662.  to you, depending on its output format.
  4663. <4 -- all terminal stuff is pulled from the .trm files
  4664. 3 tics
  4665. ?set tics
  4666. ?show tics
  4667. ?tics
  4668.  The `set tics` command can be used to change the tics to be drawn outwards.
  4669.  
  4670.  Syntax:
  4671.        set tics {<direction>}
  4672.        show tics
  4673.  
  4674.  where <direction> may be `in` (the default) or `out`.
  4675.  
  4676.  See also `set xtics` for more control of major (labelled) tic marks and `set
  4677.  mxtics` for control of minor tic marks.
  4678. 3 ticslevel
  4679. ?set ticslevel
  4680. ?show ticslevel
  4681. ?ticslevel
  4682.  Using `splot`, one can adjust the relative height of the vertical (Z) axis
  4683.  using `set ticslevel`.  The numeric argument provided specifies the location
  4684.  of the bottom of the scale (as a fraction of the z-range) above the xy-plane.
  4685.  The default value is 0.5.  Negative values are permitted, but tic labels on
  4686.  the three axes may overlap.
  4687.  
  4688.  To place the xy-plane at a position 'pos' on the z-axis, `ticslevel` should
  4689.  be set equal to  (pos - zmin) / (zmin - zmax).
  4690.  
  4691.  Syntax:
  4692.        set ticslevel {<level>}
  4693.        show tics
  4694.  
  4695.  See also `set view`.
  4696. 3 ticscale
  4697. ?set ticscale
  4698. ?show ticscale
  4699. ?ticscale
  4700.  The size of the tic marks can be adjusted with `set ticscale`.
  4701.  
  4702.  Syntax:
  4703.        set ticscale {<major> {<minor>}}
  4704.        show tics
  4705.  
  4706.  If <minor> is not specified, it is 0.5*<major>.  The default size is 1.0 for
  4707.  major tics and 0.5 for minor tics.  Note that it is possible to have the tic
  4708.  marks pointing outward by specifying a negative size.
  4709. 3 timestamp
  4710. ?set timestamp
  4711. ?set time
  4712. ?set notimestamp
  4713. ?show timestamp
  4714. ?timestamp
  4715. ?notimestamp
  4716.  The command `set timestamp` places the time and date of the plot in the left
  4717.  margin.
  4718.  
  4719.  Syntax:
  4720.        set timestamp {"<format>"} {top|bottom} {{no}rotate}
  4721.                      {<xoff>}{,<yoff>} {"<font>"}
  4722.        set notimestamp
  4723.        show timestamp
  4724.  
  4725.  The format string allows you to choose the format used to write the date and
  4726.  time.  Its default value is what asctime() uses: "%a %b %d %H:%M:%S %Y"
  4727.  (weekday, month name, day of the month, hours, minutes, seconds, four-digit
  4728.  year).  With `top` or `bottom` you can place the timestamp at the top or
  4729.  bottom of the left margin (default: bottom).  `rotate` lets you write the
  4730.  timestamp vertically, if your terminal supports vertical text.  The constants
  4731.  <xoff> and <off> are offsets from the default position given in character
  4732.  screen coordinates.  <font> is used to specify the font with which the time
  4733.  is to be written.
  4734.  
  4735.  The abbreviation `time` may be used in place of `timestamp`.
  4736.  
  4737.  Example:
  4738.        set timestamp "%d/%m/%y %H:%M" 80,-2 "Helvetica"
  4739.  
  4740.  See `set timefmt` for more information about time format strings.
  4741. 3 timefmt
  4742. ?set timefmt
  4743. ?show timefmt
  4744. ?timefmt
  4745.  This command applies to timeseries where data are composed of dates/times.
  4746.  It has no meaning unless the command `set xdata time` is given also.
  4747.  
  4748.  Syntax:
  4749.        set timefmt "<format string>"
  4750.        show timefmt
  4751.  
  4752.  The string argument tells `gnuplot` how to read timedata from the datafile.
  4753.  The valid formats are:
  4754.  
  4755. @start table - first is interactive cleartext form
  4756.        Format       Explanation
  4757.        %d           day of the month, 1--31
  4758.        %m           month of the year, 1--12
  4759.        %y           year, 0--99
  4760.        %Y           year, 4-digit
  4761.        %j           day of the year, 1--365
  4762.        %H           hour, 0--24
  4763.        %M           minute, 0--60
  4764.        %S           second, 0--60
  4765.        %b           three-character abbreviation of the name of the month
  4766.        %B           name of the month
  4767. #\multicolumn{3}{|c|}{Format Specifiers}\\
  4768. #Format && Explanation \\ \hline
  4769. #\verb@%d@ && day of the month, 1--31 \\
  4770. #\verb@%m@ && month of the year, 1--12 \\
  4771. #\verb@%y@ && year, 0--99 \\
  4772. #\verb@%Y@ && year, 4-digit \\
  4773. #\verb@%j@ && day of the year, 1--365 \\
  4774. #\verb@%H@ && hour, 0--24 \\
  4775. #\verb@%M@ && minute, 0--60 \\
  4776. #\verb@%S@ && second, 0--60 \\
  4777. #\verb@%b@ && three-character abbreviation of the name of the month \\
  4778. #\verb@%B@ && name of the month \\
  4779. %Format@Explanation
  4780. %_
  4781. %%d@day of the month, 1--31
  4782. %%m@month of the year, 1--12
  4783. %%y@year, 0--99
  4784. %%Y@year, 4-digit
  4785. %%j@day of the year, 1--365
  4786. %%H@hour, 0--24
  4787. %%M@minute, 0--60
  4788. %%S@second, 0--60
  4789. %%b@three-character abbreviation of the name of the month
  4790. %%B@name of the month
  4791. %_
  4792. @end table
  4793.  Any character is allowed in the string, but must match exactly.  \t (tab) is
  4794.  recognized.  Backslash-octals (\nnn) are converted to char.  If there is no
  4795.  separating character between the date/time elements, then %d, %m, %y, %H, %M
  4796.  and %S read two digits each, %Y reads four digits and %j reads three digits.
  4797.  %b requires three characters, and %B requires as many as it needs.
  4798.  
  4799.  Spaces are treated slightly differently.  A space in the string stands for
  4800.  zero or more whitespace characters in the file.  That is, "%H %M" can be used
  4801.  to read "1220" and "12     20" as well as "12 20".
  4802.  
  4803.  Each set of non-blank characters in the timedata counts as one column in the
  4804.  `using n:n` specification.  Thus `11:11  25/12/76  21.0` consists of three
  4805.  columns.  To avoid confusion, `gnuplot` requires that you provide a complete
  4806.  `using` specification if your file contains timedata.
  4807.  
  4808.  Since `gnuplot` cannot read non-numerical text, if the date format includes
  4809.  the day or month in words, the format string must exclude this text.  But
  4810.  it can still be printed with the "%a", "%A", "%b", or "%B" specifier: see
  4811.  `set format` for more details about these and other options for printing
  4812.  timedata.  (`gnuplot` will determine the proper month and weekday from the
  4813.  numerical values.)
  4814.  
  4815.  See also `set xdata` and `Time/date` for more information.
  4816.  
  4817.  Example:
  4818.        set timefmt "%d/%m/%Y\t%H:%M"
  4819.  tells `gnuplot` to read date and time separated by tab.  (But look closely at
  4820.  your data---what began as a tab may have been converted to spaces somewhere
  4821.  along the line; the format string must match what is actually in the file.)
  4822. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/timedat/timedat.html"> Time Data Demo </a>
  4823. 3 title
  4824. ?set title
  4825. ?show title
  4826. ?title
  4827.  The `set title` command produces a plot title that is centered at the top of
  4828.  the plot.  `set title` is a special case of `set label`.
  4829.  
  4830.  Syntax:
  4831.        set title {"<title-text>"} {<xoff>}{,<yoff>} {"<font>,{<size>}"}
  4832.        show title
  4833.  
  4834.  Specifying constants <xoff> or <yoff> as optional offsets for the title will
  4835.  move the title <xoff> or <yoff> character screen coordinates (not graph
  4836.  coordinates).  For example, "`set title ,-1`" will change only the y offset
  4837.  of the title, moving the title down by roughly the height of one character.
  4838.  
  4839.  <font> is used to specify the font with which the title is to be written;
  4840.  the units of the font <size> depend upon which terminal is used.
  4841.  
  4842.  `set title` with no parameters clears the title.
  4843.  
  4844.  See `syntax` for details about the processing of backslash sequences and
  4845.  the distinction between single- and double-quotes.
  4846. 3 tmargin
  4847. ?set tmargin
  4848. ?tmargin
  4849.  The command `set tmargin` sets the size of the top margin.  Please see
  4850.  `set margin` for details.
  4851. 3 trange
  4852. ?set trange
  4853. ?show trange
  4854. ?trange
  4855.  The `set trange` command sets the parametric range used to compute x and y
  4856.  values when in parametric or polar modes.  Please see `set xrange` for
  4857.  details.
  4858. 3 urange
  4859. ?set urange
  4860. ?show urange
  4861. ?urange
  4862.  The `set urange` and `set vrange` commands set the parametric ranges used
  4863.  to compute x, y, and z values when in `splot` parametric mode.  Please see
  4864.  `set xrange` for details.
  4865. 3 variables
  4866. ?show variables
  4867.  The `show variables` command lists all user-defined variables and their
  4868.  values.
  4869.  
  4870.  Syntax:
  4871.        show variables
  4872. 3 view
  4873. ?set view
  4874. ?show view
  4875. ?view
  4876.  The `set view` command sets the viewing angle for `splot`s.  It controls how
  4877.  the 3-d coordinates of the plot are mapped into the 2-d screen space.  It
  4878.  provides controls for both rotation and scaling of the plotted data, but
  4879.  supports orthographic projections only.
  4880.  
  4881.  Syntax:
  4882.        set view <rot_x> {,{<rot_z>}{,{<scale>}{,<scale_z>}}}
  4883.        show view
  4884.  
  4885.  where <rot_x> and <rot_z> control the rotation angles (in degrees) in a
  4886.  virtual 3-d coordinate system aligned with the screen such that initially
  4887.  (that is, before the rotations are performed) the screen horizontal axis is
  4888.  x, screen vertical axis is y, and the axis perpendicular to the screen is z.
  4889.  The first rotation applied is <rot_x> around the x axis.  The second rotation
  4890.  applied is <rot_z> around the new z axis.
  4891.  
  4892.  <rot_x> is bounded to the [0:180] range with a default of 60 degrees, while
  4893.  <rot_z> is bounded to the [0:360] range with a default of 30 degrees.
  4894.  <scale> controls the scaling of the entire `splot`, while <scale_z> scales
  4895.  the z axis only.  Both scales default to 1.0.
  4896.  
  4897.  Examples:
  4898.        set view 60, 30, 1, 1
  4899.        set view ,,0.5
  4900.  
  4901.  The first sets all the four default values.  The second changes only scale,
  4902.  to 0.5.
  4903.  
  4904.  See also `set ticslevel`.
  4905. 3 vrange
  4906. ?set vrange
  4907. ?show vrange
  4908. ?vrange
  4909.  The `set urange` and `set vrange` commands set the parametric ranges used
  4910.  to compute x, y, and z values when in `splot` parametric mode.  Please see
  4911.  `set xrange` for details.
  4912. 3 x2data
  4913. ?set x2data
  4914. ?show x2data
  4915. ?x2data
  4916.  The `set x2data` command sets data on the x2 (top) axis to timeseries
  4917.  (dates/times).  Please see `set xdata`.
  4918. 3 x2dtics
  4919. ?set x2dtics
  4920. ?set nox2dtics
  4921. ?show x2dtics
  4922. ?x2dtics
  4923. ?nox2dtics
  4924.  The `set x2dtics` command changes tics on the x2 (top) axis to days of the
  4925.  week.  Please see `set xmtics` for details.
  4926. 3 x2label
  4927. ?set x2label
  4928. ?show x2label
  4929. ?x2label
  4930.  The `set x2label` command sets the label for the x2 (top) axis.  Please see
  4931.  `set xlabel`.
  4932. 3 x2mtics
  4933. ?set x2mtics
  4934. ?set nox2mtics
  4935. ?show x2mtics
  4936. ?x2mtics
  4937. ?nox2mtics
  4938.  The `set x2mtics` command changes tics on the x2 (top) axis to months of the
  4939.  year.  Please see `set xmtics` for details.
  4940. 3 x2range
  4941. ?set x2range
  4942. ?show x2range
  4943. ?x2range
  4944.  The `set x2range` command sets the horizontal range that will be displayed on
  4945.  the x2 (top) axis.  Please see `set xrange` for details.
  4946. 3 x2tics
  4947. ?set x2tics
  4948. ?set nox2tics
  4949. ?show x2tics
  4950. ?x2tics
  4951. ?nox2tics
  4952.  The `set x2tics` command controls major (labelled) tics on the x2 (top) axis.
  4953.  Please see `set xtics` for details.
  4954. 3 x2zeroaxis
  4955. ?set x2zeroaxis
  4956. ?set nox2zeroaxis
  4957. ?show x2zeroaxis
  4958. ?x2zeroaxis
  4959. ?nox2zeroaxis
  4960.  The `set x2zeroaxis` command draws a line at the origin of the x2 (top) axis
  4961.  (x2 = 0).  For details, please see
  4962.  `set zeroaxis`.
  4963. 3 xdata
  4964. ?set xdata
  4965. ?show xdata
  4966. ?xdata
  4967.  This command sets the datatype on the x axis to date/time.  A similar command
  4968.  does the same thing for each of the other axes.
  4969.  
  4970.  Syntax:
  4971.        set xdata {time}
  4972.        show xdata
  4973.  
  4974.  The same syntax applies to `ydata`, `zdata`, `x2data` and `y2data`.
  4975.  
  4976.  The `time` option signals that the datatype is indeed date/time.  If the
  4977.  option is not specified, the datatype reverts to normal.
  4978.  
  4979.  See `set timefmt` to tell `gnuplot` how to read date or time data.  The
  4980.  date/time is converted to seconds from start of the century.  There is
  4981.  currently only one timefmt, which implies that all the date/time columns must
  4982.  confirm to this format.  Specification of ranges should be supplied as quoted
  4983.  strings according to this format to avoid interpretation of the date/time as
  4984.  an expression.
  4985.  
  4986.  The function 'strftime' (type "man strftime" on unix to look it up) is used
  4987.  to print ticmark labels.  `gnuplot` tries to figure out a reasonable format
  4988.  for this  unless the `set format x "string"` has supplied something that does
  4989.  not look like a decimal format (more than one '%' or neither %f nor %g).
  4990.  
  4991.  See also `Time/date` for more information.
  4992. 3 xdtics
  4993. ?set xdtics
  4994. ?set noxdtics
  4995. ?show xdtics
  4996. ?xdtics
  4997. ?noxdtics
  4998.  The `set xdtics` commands converts the x-axis tic marks to days of the week
  4999.  where 0=Sun and 6=Sat.  Overflows are converted modulo 7 to dates.  `set
  5000.  noxdtics` returns the labels to their default values.  Similar commands do
  5001.  the same things for the other axes.
  5002.  
  5003.  Syntax:
  5004.        set xdtics
  5005.        set noxdtics
  5006.        show xdtics
  5007.  
  5008.  The same syntax applies to `ydtics`, `zdtics`, `x2dtics` and `y2dtics`.
  5009.  
  5010.  See also the `set format` command.
  5011. 3 xlabel
  5012. ?set xlabel
  5013. ?show xlabel
  5014. ?xlabel
  5015.  The `set xlabel` command sets the x axis label.  Similar commands set labels
  5016.  on the other axes.
  5017.  
  5018.  Syntax:
  5019.        set xlabel {"<label>"} {<xoff>}{,<yoff>} {"<font>{,<size>}"}
  5020.        show xlabel
  5021.  
  5022.  The same syntax applies to `x2label`, `ylabel`, `y2label` and `zlabel`.
  5023.  
  5024.  Specifying the constants <xoff> or <yoff> as optional offsets for a label
  5025.  will move it <xoff> or <yoff> character widths or heights.  For example,
  5026.  "` set xlabel -1`" will change only the x offset of the xlabel, moving the
  5027.  label roughly one character width to the left.   The size of a character
  5028.  depends on both the font and the terminal.
  5029.  
  5030.  <font> is used to specify the font in which the label is written; the units
  5031.  of the font <size> depend upon which terminal is used.
  5032.  
  5033.  To clear a label, put no options on the command line, e.g., "`set y2label`".
  5034.  
  5035.  The default positions of the axis labels are as follows:
  5036.  
  5037.  xlabel:  The x-axis label is centered below the bottom axis.
  5038.  
  5039.  ylabel:  The position of the y-axis label depends on the terminal, and can be
  5040.  one of the following three positions:
  5041.  
  5042.  1. Horizontal text flushed left at the top left of the plot.  Terminals that
  5043.  cannot rotate text will probably use this method.  If `set x2tics` is also
  5044.  in use, the ylabel may overwrite the left-most x2tic label.  This may be
  5045.  remedied by adjusting the ylabel position or the left margin.
  5046.  
  5047.  2. Vertical text centered vertically at the left of the plot.  Terminals
  5048.  that can rotate text will probably use this method.
  5049.  
  5050.  3. Horizontal text centered vertically at the left of the plot.  The EEPIC,
  5051.  LaTeX and TPIC drivers use this method.  The user must insert line breaks
  5052.  using \\ to prevent the ylabel from overwriting the plot.  To produce a
  5053.  vertical row of characters, add \\ between every printing character (but this
  5054.  is ugly).
  5055.  
  5056.  zlabel: The z-axis label is centered along the z axis and placed in the space
  5057.  above the grid level.
  5058.  
  5059.  y2label: The y2-axis label is placed to the right of the y2 axis.  The
  5060.  position is terminal-dependent in the same manner as is the y-axis label.
  5061.  
  5062.  x2label: The x2-axis label is placed above the top axis but below the plot
  5063.  title.  It is also possible to create an x2-axis label by using new-line
  5064.  characters to make a multi-line plot title, e.g.,
  5065.  
  5066.        set title "This is the title\n\nThis is the x2label"
  5067.  
  5068.  Note that double quotes must be used.  The same font will be used for both
  5069.  lines, of course.
  5070.  
  5071.  If you are not satisfied with the default position of an axis label, use `set
  5072.  label` instead--that command gives you much more control over where text is
  5073.  placed.
  5074.  
  5075.  Please see `set syntax` for further information about backslash processing
  5076.  and the difference between single- and double-quoted strings.
  5077. 3 xmtics
  5078. ?set xmtics
  5079. ?set noxmtics
  5080. ?show xmtics
  5081. ?xmtics
  5082. ?noxmtics
  5083.  The `set xmtics` commands converts the x-axis tic marks to months of the
  5084.  year where 1=Jan and 12=Dec.  Overflows are converted modulo 12 to months.
  5085.  The tics are returned to their default labels by `set noxmtics`.  Similar
  5086.  commands perform the same duties for the other axes.
  5087.  
  5088.  Syntax:
  5089.        set xmtics
  5090.        set noxmtics
  5091.        show xmtics
  5092.  
  5093.  The same syntax applies to `x2mtics`, `ymtics`, `y2mtics`, and `zmtics`.
  5094.  
  5095.  See also the `set format` command.
  5096. 3 xrange
  5097. ?set xrange
  5098. ?show xrange
  5099. ?xrange
  5100.  The `set xrange` command sets the horizontal range that will be displayed.
  5101.  A similar command exists for each of the other axes, as well as for the
  5102.  polar radius r and the parametric variables t, u, and v.
  5103.  
  5104.  Syntax:
  5105.        set xrange [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback}
  5106.        show xrange
  5107.  
  5108.  where <min> and <max> terms are constants, expressions or an asterisk to set
  5109.  autoscaling.  If the data are date/time, you must give the range as a quoted
  5110.  string according to the `set timefmt` format.  Any value omitted will not be
  5111.  changed.
  5112.  
  5113.  The same syntax applies to `yrange`, `zrange`, `x2range`, `y2range`,
  5114.  `rrange`, `trange`, `urange` and `vrange`.
  5115.  
  5116.  The `reverse` option reverses the direction of the axis, e.g., `set xrange
  5117.  [0:1] reverse` will produce an axis with 1 on the left and 0 on the right.
  5118.  This is identical to the axis produced by `set xrange [1:0]`, of course.
  5119.  `reverse` is intended primarily for use with `autoscale`.
  5120.  
  5121.  The `writeback` option essentially saves the range found by `autoscale` in
  5122.  the buffers that would be filled by `set xrange`.  This is useful if you wish
  5123.  to plot several functions together but have the range determined by only
  5124.  some of them.  The `writeback` operation is performed during the `plot`
  5125.  execution, so it must be specified before that command.  For example,
  5126.  
  5127.        set xrange [-10:10]
  5128.        set yrange [] writeback
  5129.        plot sin(x)
  5130.        set noautoscale y
  5131.        replot x/2
  5132.  
  5133.  results in a yrange of [-1:1] as found only from the range of sin(x); the
  5134.  [-5:5] range of x/2 is ignored.  Executing `show yrange` after each command
  5135.  in the above example should help you understand what is going on.
  5136.  
  5137.  In 2-d, `xrange` and `yrange` determine the extent of the axes, `trange`
  5138.  determines the range of the parametric variable in parametric mode or the
  5139.  range of the angle in polar mode.  Similarly in parametric 3-d, `xrange`,
  5140.  `yrange`, and `zrange` govern the axes and `urange` and `vrange` govern the
  5141.  parametric variables.
  5142.  
  5143.  In polar mode, `rrange` determines the radial range plotted.  <rmin> acts as
  5144.  an additive constant to the radius, whereas <rmax> acts as a clip to the
  5145.  radius---no point with radius greater than <rmax> will be plotted.  `xrange`
  5146.  and `yrange` are affected---the ranges can be set as if the graph was of
  5147.  r(t)-rmin, with rmin added to all the labels.
  5148.  
  5149.  Any range may be partially or totally autoscaled, although it may not make
  5150.  sense to autoscale a parametric variable unless it is plotted with data.
  5151.  
  5152.  Ranges may also be specified on the `plot` command line.  A range given on
  5153.  the plot line will be used for that single `plot` command; a range given by
  5154.  a `set` command will be used for all subsequent plots that do not specify
  5155.  their own ranges.  The same holds true for `splot`.
  5156.  
  5157.  Examples:
  5158.  
  5159.  To set the xrange to the default:
  5160.        set xrange [-10:10]
  5161.  
  5162.  To set the yrange to increase downwards:
  5163.        set yrange [10:-10]
  5164.  
  5165.  To change zmax to 10 without affecting zmin (which may still be autoscaled):
  5166.        set zrange [:10]
  5167.  
  5168.  To autoscale xmin while leaving xmax unchanged:
  5169.        set xrange [*:]
  5170. 3 xtics
  5171. ?set xtics
  5172. ?set noxtics
  5173. ?show xtics
  5174. ?xtics
  5175. ?noxtics
  5176.  Fine control of the major (labelled) tics on the x axis is possible with the
  5177.  `set xtics` command.  The tics may be turned off with the `set noxtics`
  5178.  command, and may be turned on (the default state) with `set xtics`.  Similar
  5179.  commands control the major tics on the y, z, x2 and y2 axes.
  5180.  
  5181.  Syntax:
  5182.        set xtics {axis | border} {{no}mirror} {{no}rotate}
  5183.                  {  <incr>
  5184.                   | <start>, <incr> {,<end>}
  5185.                   | ({"<label>"} <pos> {,{"<label>"} <pos>}...) }
  5186.        set noxtics
  5187.        show xtics
  5188.  
  5189.  The same syntax applies to `ytics`, `ztics`, `x2tics` and `y2tics`.
  5190.  
  5191.  `axis` or `border` tells `gnuplot` to put the tics (both the tics themselves
  5192.  and the accompanying labels) along the axis or the border, respectively.
  5193.  `mirror` tells it to put unlabelled tics at the same positions on the
  5194.  opposite border.  `nomirror` does what you think it does.  `rotate` asks
  5195.  `gnuplot` to rotate the text through 90 degrees, if the underlying terminal
  5196.  driver supports text rotation.  `norotate` cancels this.  The defaults are
  5197.  `border mirror norotate` for tics on the x, y, x2, and y2 axes.  For the
  5198.  z axis, the the `{axis | border}` option is not available and the default
  5199.  is `nomirror`.  If you do want to mirror the z-axis tics, you might want
  5200.  to create a bit more room for them with `set border`.
  5201.  
  5202.  The positions of the tics may be specified in either of two forms:
  5203.  
  5204.  The <start>, <incr>, <end> form specifies that a series of tics will be
  5205.  plotted on the axis between the values <start> and <end> with an increment of
  5206.  <incr>.  If <end> is not given, it is assumed to be infinity.  The increment
  5207.  may be negative.  If neither <start> nor <end> is given, <start> is assumed
  5208.  to be negative infinity, <end> is assumed to be positive infinity, and the
  5209.  tics will be drawn at multiples of <step>---there will be a tic at zero (if
  5210.  it is within the plotted range).  If the axis is logarithmic, the increment
  5211.  will be used as a multiplicative factor.
  5212.  
  5213.  Examples:
  5214.  
  5215.  Make tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
  5216.        set xtics 0,.5,10
  5217.  
  5218.  Make tics at ..., -10, -5, 0, 5, 10, ...
  5219.        set xtics 5
  5220.  
  5221.  Make tics at 1, 100, 1e4, 1e6, 1e8.
  5222.        set logscale x; set xtics 1,100,10e8
  5223.  
  5224.  The ("<label>" <pos>, ...) form allows arbitrary tic positions or non-numeric
  5225.  tic labels.  A set of tics is a set of positions, each with its own optional
  5226.  label.  Note that the label is a string enclosed by quotes, and may be a
  5227.  constant string, such as "hello", or contain formatting information for the
  5228.  tic number (which is the same as the position), such as "%3f clients".  See
  5229.  `set format` for more information about this case.  The label may be made
  5230.  empty by specifying it as an empty string.  If no string is given, the
  5231.  default label (numerical) is used.  In this form, the tics do not need to be
  5232.  listed in numerical order.
  5233.  
  5234.  Examples:
  5235.        set xtics ("low" 0, "medium" 50, "high" 100)
  5236.        set xtics (1,2,4,8,16,32,64,128,256,512,1024)
  5237.        set ytics ("bottom" 0, "" 10, "top" 20)
  5238.  
  5239.  In the second example, all tics are labelled.  In the third, only the end
  5240.  tics are labelled.
  5241.  
  5242.  Tics will only be plotted when in range.
  5243.  
  5244.  Minor (unlabelled) tics can be added by the `set mxtics` command.
  5245.  
  5246.  In case of timeseries data, position values must be given as quoted dates
  5247.  or times according to the format `timefmt`.  If the <start>, <incr>, <end>
  5248.  form is used, <start> and <end> must be given according to `timefmt`, but
  5249.  <incr> must be in seconds.  Times will be written out according to the format
  5250.  given on "set format", however.
  5251.  
  5252.  Examples:
  5253.        set xdata time
  5254.        set timefmt "%d/%m"
  5255.        set format x "%b %d"
  5256.        set xrange ["00/12":"06/12"]
  5257.        set xtics "01/12", 172800, "05/12"
  5258.  
  5259.        set xdata time
  5260.        set timefmt "%d/%m"
  5261.        set format x "%b %d"
  5262.        set xrange ["00/12":"06/12"]
  5263.        set xtics ("01/12", "" "03/12", "05/12")
  5264.  Both of these will produce tics "Dec 1", "Dec 3", and "Dec 5", but in the
  5265.  second example the tic at "Dec 3" will be unlabelled.
  5266.  
  5267. 3 xzeroaxis
  5268. ?set xzeroaxis
  5269. ?set noxzeroaxis
  5270. ?show xzeroaxis
  5271. ?xzeroaxis
  5272. ?noxzeroaxis
  5273.  The `set xzeroaxis` command draws a line at x = 0.  For details, please see
  5274.  `set zeroaxis`.
  5275. 3 y2data
  5276. ?set y2data
  5277. ?show y2data
  5278. ?y2data
  5279.  The `set y2data` command sets y2 (right-hand) axis data to timeseries
  5280.  (dates/times).  Please see `set xdata`.
  5281. 3 y2dtics
  5282. ?set y2dtics
  5283. ?set noy2dtics
  5284. ?show y2dtics
  5285. ?y2dtics
  5286. ?noy2dtics
  5287.  The `set y2dtics` command changes tics on the y2 (right-hand) axis to days of
  5288.  the week.  Please see `set xmtics` for details.
  5289. 3 y2label
  5290. ?set y2label
  5291. ?show y2label
  5292. ?y2label
  5293.  The `set y2dtics` command sets the label for the y2 (right-hand) axis.
  5294.  Please see `set xlabel`.
  5295. 3 y2mtics
  5296. ?set y2mtics
  5297. ?set noy2mtics
  5298. ?show y2mtics
  5299. ?y2mtics
  5300. ?noy2mtics
  5301.  The `set y2mtics` command changes tics on the y2 (right-hand) axis to months
  5302.  of the year.  Please see `set xmtics` for details.
  5303. 3 y2range
  5304. ?set y2range
  5305. ?show y2range
  5306. ?y2range
  5307.  The `set y2range` command sets the vertical range that will be displayed on
  5308.  the y2 (right-hand) axis.  Please see `set xrange` for details.
  5309. 3 y2tics
  5310. ?set y2tics
  5311. ?set noy2tics
  5312. ?show y2tics
  5313. ?y2tics
  5314. ?noy2tics
  5315.  The `set y2tics` command controls major (labelled) tics on the y2 (right-hand)
  5316.  axis.  Please see `set xtics` for details.
  5317. 3 y2zeroaxis
  5318. ?set y2zeroaxis
  5319. ?set noy2zeroaxis
  5320. ?show y2zeroaxis
  5321. ?y2zeroaxis
  5322. ?noy2zeroaxis
  5323.  The `set y2zeroaxis` command draws a line at the origin of the y2 (right-hand)
  5324.  axis (y2 = 0).  For details, please see `set zeroaxis`.
  5325. 3 ydata
  5326. ?set ydata
  5327. ?show ydata
  5328. ?ydata
  5329.  Sets y-axis data to timeseries (dates/times).  Please see `set xdata`.
  5330. 3 ydtics
  5331. ?set ydtics
  5332. ?set noydtics
  5333. ?show ydtics
  5334. ?ydtics
  5335. ?noydtics
  5336.  The `set ydtics` command changes tics on the y axis to days of the week.
  5337.  Please see `set xmtics` for details.
  5338. 3 ylabel
  5339. ?set ylabel
  5340. ?show ylabel
  5341. ?ylabel
  5342.  This command sets the label for the y axis.  Please see `set xlabel`.
  5343. 3 ymtics
  5344. ?set ymtics
  5345. ?set noymtics
  5346. ?show ymtics
  5347. ?ymtics
  5348. ?noymtics
  5349.  The `set ymtics` command changes tics on the y axis to months of the year.
  5350.  Please see `set xmtics` for details.
  5351. 3 yrange
  5352. ?set yrange
  5353. ?show yrange
  5354. ?yrange
  5355.  The `set yrange` command sets the vertical range that will be displayed on
  5356.  the y axis.  Please see `set xrange` for details.
  5357. 3 ytics
  5358. ?set ytics
  5359. ?set noytics
  5360. ?show ytics
  5361. ?ytics
  5362. ?noytics
  5363.  The `set ytics` command controls major (labelled) tics on the y axis.
  5364.  Please see `set xtics` for details.
  5365. 3 yzeroaxis
  5366. ?set yzeroaxis
  5367. ?set noyzeroaxis
  5368. ?show yzeroaxis
  5369. ?yzeroaxis
  5370. ?noyzeroaxis
  5371.  The `set yzeroaxis` command draws a line at y = 0.  For details, please see
  5372.  `set zeroaxis`.
  5373. 3 zdata
  5374. ?set zdata
  5375. ?show zdata
  5376. ?zdata
  5377.  Set zaxis date to timeseries (dates/times).  Please see `set xdata`.
  5378. 3 zdtics
  5379. ?set zdtics
  5380. ?set nozdtics
  5381. ?show zdtics
  5382. ?zdtics
  5383. ?nozdtics
  5384.  The `set zdtics` command changes tics on the z axis to days of the week.
  5385.  Please see `set xmtics` for details.
  5386. 3 zero
  5387. ?set zero
  5388. ?show zero
  5389. ?zero
  5390.  The `zero` value is the default threshold for values approaching 0.0.
  5391.  
  5392.  Syntax:
  5393.        set zero <expression>
  5394.        show zero
  5395.  
  5396.  `gnuplot` will not plot a point if its imaginary part is greater in magnitude
  5397.  than the `zero` threshold.  Axis ranges cannot be less than `zero`.  The
  5398.  default `zero` value is 1e-8.
  5399. 3 zeroaxis
  5400. ?set zeroaxis
  5401. ?set nozeroaxis
  5402. ?show zeroaxis
  5403. ?zeroaxis
  5404. ?nozeroaxis
  5405.  The x axis may be drawn by `set xzeroaxis` and removed by `set noxzeroaxis`.
  5406.  Similar commands behave similarly for the y, x2, and y2 axes.
  5407.  
  5408.  Syntax:
  5409.        set zeroaxis {<linetype>}
  5410.        set xzeroaxis {<linetype>}
  5411.        set yzeroaxis {<linetype>}
  5412.        set x2zeroaxis {<linetype>}
  5413.        set y2zeroaxis {<linetype>}
  5414.        set nozeroaxis
  5415.        set noxzeroaxis
  5416.        etc.
  5417.        show zeroaxis
  5418.        show xzeroaxis
  5419.        etc.
  5420.  
  5421.  By default, these options are off.  The selected zero axis is drawn with a
  5422.  line of type <linetype> from the default linetype list provided by the
  5423.  terminal; user-defined linetypes (via the `set linestyle` command) are not
  5424.  accessible for these axes.  If <linetype> is not specified, any zero axes
  5425.  selected will be drawn using the axis linetype (linetype 0).
  5426.  
  5427.  `set zeroaxis l` is equivalent to `set xzeroaxis l; set yzeroaxis l`. `set
  5428.  nozeroaxis` is equivalent to `set noxzeroaxis; set noyzeroaxis`.
  5429. 3 zlabel
  5430. ?set zlabel
  5431. ?show zlabel
  5432. ?zlabel
  5433.  This command sets the label for the z axis.  Please see `set xlabel`.
  5434. 3 zmtics
  5435. ?set zmtics
  5436. ?set nozmtics
  5437. ?show zmtics
  5438. ?zmtics
  5439. ?nozmtics
  5440.  The `set zmtics` command changes tics on the z axis to months of the year.
  5441.  Please see `set xmtics` for details.
  5442. 3 zrange
  5443. ?set zrange
  5444. ?show zrange
  5445. ?zrange
  5446.  The `set zrange` command sets the range that will be displayed on the z axis.
  5447.  The zrange is used only by `splot` and is ignored by `plot`.  Please see `set
  5448.  xrange` for details.
  5449. 3 ztics
  5450. ?set ztics
  5451. ?set noztics
  5452. ?show ztics
  5453. ?ztics
  5454. ?noztics
  5455.  The `set ztics` command controls major (labelled) tics on the z axis.
  5456.  Please see `set xtics` for details.
  5457. 2 shell
  5458. ?shell
  5459.  The `shell` command spawns an interactive shell.  To return to `gnuplot`,
  5460.  type `logout` if using VMS, `exit` or the END-OF-FILE character if using
  5461.  Unix, `endcli` if using AmigaDOS, or `exit` if using MS-DOS or OS/2.
  5462.  
  5463.  A single shell command may be spawned by preceding it with the ! character
  5464.  ($ if using VMS) at the beginning of a command line.  Control will return
  5465.  immediately to `gnuplot` after this command is executed.  For example, in
  5466.  Unix, AmigaDOS, MS-DOS or OS/2,
  5467.  
  5468.        ! dir
  5469.  
  5470.  prints a directory listing and then returns to `gnuplot`.
  5471.  
  5472.  On an Atari, the `!` command first checks whether a shell is already loaded
  5473.  and uses it, if available.  This is practical if `gnuplot` is run from
  5474.  `gulam`, for example.
  5475. 2 splot
  5476. ?splot
  5477.  `splot` is the primary command for drawing 3-d plots (well, actually
  5478.  projections on a 2-d surface, but you knew that).  It can create a plot from
  5479.  functions or data in a manner very similar to the `plot` command.
  5480.  
  5481.  Please see `plot` for features common to the `plot` command; only differences
  5482.  are discussed in detail here.
  5483.  
  5484.  Syntax:
  5485.        splot {<ranges>}
  5486.              {<function> | {"<datafile>" {datafile-modifiers}}}
  5487.              {<title-spec>} {with <style>}
  5488.              {, {definitions,} <function> ...}
  5489.  
  5490.  where either a <function> or the name of a data file enclosed in quotes is
  5491.  supplied.  A function is a mathematical expression, or a triple (`splot`) of
  5492.  mathematical expressions in parametric mode.
  5493.  
  5494.  By default `splot` draws the xy plane completely below the plotted data.  The
  5495.  offset between the lowest ztic and the xy plane can be changed by `set
  5496.  ticslevel`.  The orientation of a 'splot' is controlled by `set view`.  See
  5497.  `set view` and `set ticslevel` for more information.
  5498.  
  5499.  The syntax for setting ranges on the `splot` command is the same as for
  5500.  `plot`.  In non-parametric mode, the order in which ranges must be given is
  5501.  `xrange`, `yrange`, and `zrange`.  In parametric mode, the order is `urange`,
  5502.  `vrange`, `xrange`, `yrange`, and `zrange`.
  5503.  
  5504.  The `title` option is the same as in `plot`.  The operation of `with` is also
  5505.  the same as in `plot`, except that the plotting styles available to `splot`
  5506.  are limited to `lines`, `points`, `linespoints`, `dots`, and `impulses`;  the
  5507.  error-bar capabilities of `plot` are not available for `splot`.
  5508.  
  5509.  The datafile options have more differences.
  5510. 3 data-file
  5511. ?splot data-file
  5512. ?splot datafile
  5513.  Discrete data contained in a file can be displayed by specifying the name of
  5514.  the data file (enclosed in quotes) on the `plot` or `splot` command line.
  5515.  
  5516.  Syntax:
  5517.        splot '<file_name>' {binary | matrix}
  5518.                            {index <index list>}
  5519.                            {every <every list>}
  5520.                            {using <using list>}
  5521.  
  5522.  The special filenames `""` and `"-"` are permitted, as in `plot`.
  5523.  
  5524.  In brief, `binary` indicates that the file is binary, `matrix` indicates that
  5525.  the data are in matrix form, `index` selects which data sets in a
  5526.  multi-data-set file are to be plotted, `every` specifies which datalines
  5527.  within a single data set are to be plotted, and `using` determines how the
  5528.  columns within a single record are to be interpreted.
  5529.  
  5530.  The options `index` and `every` behave the same way as with `plot`.  `using`
  5531.  also does, with the obvious difference that the `using` list must provide
  5532.  three entries instead of two.
  5533.  
  5534.  The `plot` options `thru` and `smooth` are not available for `splot`.
  5535.  
  5536.  Data file organization is essentially the same as for `plot`, except that
  5537.  each point is an (x,y,z) triple.  If only a single value is provided, it will
  5538.  be used for z, the data point number will be used for x, and the y-isoline
  5539.  number will be used for y; thus "`splot 'file' using 1`" is identical to
  5540.  "`splot 'file' using 0:-1:1`".  If two values are provided, `gnuplot` gives
  5541.  you an error message.  Three values are interpreted as an (x,y,z) triple.
  5542.  Additional values are generally used as errors, which can be used by `fit`.
  5543.  
  5544.  Single blank records separate datalines (which are interpreted as y-isolines)
  5545.  in a `splot` datafile.  No line will join points separated by a blank record.
  5546.  If all datalines contain the same number of points,`gnuplot` will draw
  5547.  cross-isolines in the opposite direction.  This is termed "grid data", and is
  5548.  required for drawing a surface, for contouring (`set contour`) and
  5549.  hidden-line removal (`set hidden3d`).
  5550.  
  5551.  It is no longer necessary to specify `parametric` mode for three-column
  5552.  `splot`s.
  5553. 4 binary
  5554. ?splot data-file binary
  5555. ?splot datafile binary
  5556. ?splot binary
  5557. ?data-file binary
  5558. ?datafile binary
  5559. ?binary
  5560. ?binary data
  5561. ?binary files
  5562.  In previous versions, `gnuplot` dynamically detected binary data files.  It
  5563.  is now necessary to specify the keyword `binary` directly after the filename.
  5564.  
  5565.  Single precision floats are stored in a binary file as follows:
  5566.  
  5567.        <N+1>  <y0>   <y1>   <y2>  ...  <yN>
  5568.         <x0> <z0,0> <z0,1> <z0,2> ... <z0,N>
  5569.         <x1> <z1,0> <z1,1> <z1,2> ... <z1,N>
  5570.          :      :      :      :   ...    :
  5571.  
  5572.  
  5573.  which are converted into triplets:
  5574.  
  5575.        <x0> <y0> <z0,0>
  5576.        <x0> <y1> <z0,1>
  5577.        <x0> <y2> <z0,2>
  5578.         :    :     :
  5579.        <x0> <yN> <z0,N>
  5580.  
  5581.        <x1> <y0> <z1,0>
  5582.        <x1> <y1> <z1,1>
  5583.         :    :     :
  5584.  
  5585.  These triplets are then converted into `gnuplot` iso-curves and then
  5586.  `gnuplot` proceeds in the usual manner to do the rest of the plotting.
  5587.  
  5588.  A collection of matrix and vector manipulation routines (in C) is provided
  5589.  in `binary.c`.  The routine to write binary data is
  5590.  
  5591.        int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)
  5592.  
  5593.  An example of using these routines is provided in the file `bf_test.c`, which
  5594.  generates binary files for the demo file `demo/binary.dem`.
  5595.  
  5596.  The `index` keyword is not supported, since the file format allows only one
  5597.  surface per file.  The `every` and `using` filters are supported.  `using`
  5598.  operates as if the data were read in the above triplet form.
  5599. ^ <a href="http://www.nas.nasa.gov/~woo/gnuplot/binary/binary.html">Binary File Splot Demo.</a>
  5600. 4 example datafile
  5601. ?splot data-file example
  5602. ?splot datafile example
  5603. ?splot example
  5604.  A simple example of plotting a 3-d data file is
  5605.  
  5606.        splot 'datafile.dat'
  5607.  
  5608.  where the file "datafile.dat" might contain:
  5609.  
  5610.        # The valley of the Gnu.
  5611.           0 0 10
  5612.           0 1 10
  5613.           0 2 10
  5614.  
  5615.           1 0 10
  5616.           1 1 5
  5617.           1 2 10
  5618.  
  5619.           2 0 10
  5620.           2 1 1
  5621.           2 2 10
  5622.  
  5623.           3 0 10
  5624.           3 1 0
  5625.           3 2 10
  5626.  
  5627.  Note that "datafile.dat" defines a 4 by 3 grid ( 4 rows of 3 points each ).
  5628.  Rows are separated by blank records.
  5629.  
  5630. ^ <img align=bottom src="http://www.nas.nasa.gov/~woo/gnuplot/doc/splot.gif" alt="[splot.gif]" width=640 height=480>
  5631.  Note also that the x value is held constant within each dataline.  If you
  5632.  instead keep y constant, and plot with hidden-line removal enabled, you will
  5633.  find that the surface is drawn 'inside-out'.
  5634.  
  5635.  Actually for grid data it is not necessary to keep the x values constant
  5636.  within an dataline, nor is it necessary to keep the y values the same along
  5637.  the perpendicular datalines.  `gnuplot` requires only that the number of
  5638.  points be the same for each dataline.
  5639. 4 matrix
  5640. ?splot data-file matrix
  5641. ?splot datafile matrix
  5642. ?splot matrix
  5643. ?data-file matrix
  5644. ?datafile matrix
  5645. ?matrix
  5646.  The `matrix` flag indicates that the data are stored in matrix format.  In
  5647.  its present implementation the z-values are read in a row at a time, i. e.,
  5648.        z11 z12 z13 z14 ...
  5649.        z21 z22 z23 z24 ...
  5650.        z31 z32 z33 z34 ...
  5651.  and so forth.  The row and column indices are used for the x- and y-values.
  5652.  used as x, y, and z.
  5653. 2 test
  5654. ?test
  5655.  `test` creates a display of line and point styles and other useful things
  5656.  appropriate for the terminal you are using.
  5657.  
  5658.  Syntax:
  5659.        test
  5660. 2 update
  5661. ?update
  5662.  This command writes the current values of the fit parameters into the given
  5663.  file, which is formatted as an initial-value file (as described in the `fit`
  5664.  section).  This is useful for saving the current values for later use or for
  5665.  restarting a converged or stopped fit.
  5666.  
  5667.  Syntax:
  5668.        update <filename> {<filename>}
  5669.  
  5670.  If the file already exists, `gnuplot` first renames it by appending `.old`
  5671.  and then opens a new file.  That is, "`update 'fred'`" behaves the same way
  5672.  as "`!rename fred fred.old; update 'fred.old' 'fred'`".  [On DOS and other
  5673.  systems that use the twelve-character "filename.ext" naming convention, "ext"
  5674.  will be "`old`" and "filename" will be related (hopefully recognizably) to
  5675.  the initial name.  Renaming is not done at all on VMS systems, since they use
  5676.  file-versioning.]
  5677.  
  5678.  If a second filename is supplied, the updated values are written to this
  5679.  file instead, and the original parameter file is left unmodified.
  5680.  
  5681.  Please see `fit` for more information.
  5682. 1 Graphical User Interfaces
  5683. ?graphical user interfaces
  5684. ?gui's
  5685.  Several graphical user interfaces have been written for `gnuplot` and one for
  5686.  win32 is included in this distribution.  In addition, there is a Macintosh
  5687.  interface at
  5688. ^<a href="ftp://ftp.ee.gatech.edu/pub/mac/gnuplot">
  5689.         ftp://ftp.ee.gatech.edu/pub/mac/gnuplot
  5690. ^</a>
  5691.  and several X11 interfaces include three Tcl/Tk located at the usual Tcl/Tk
  5692.  repositories.
  5693. 1 Bugs
  5694. ?bugs
  5695.  The bessel functions do not work for complex arguments.
  5696.  
  5697.  The gamma function does not work for complex arguments.
  5698.  
  5699.  There is a bug in the stdio library for old Sun operating systems (SunOS
  5700.  Sys4-3.2).  The "%g" format for 'printf' sometimes incorrectly prints numbers
  5701.  (e.g., 200000.0 as "2").  Thus, tic mark labels may be incorrect on a Sun4
  5702.  version of `gnuplot`.  A work-around is to rescale the data or use the `set
  5703.  format` command to change the tic mark format to "%7.0f" or some other
  5704.  appropriate format.  This appears to have been fixed in SunOS 4.0.
  5705.  
  5706.  Another bug: On a Sun3 under SunOS 4.0, and on Sun4's under Sys4-3.2 and
  5707.  SunOS 4.0, the 'sscanf' routine incorrectly parses "00 12" with the format
  5708.  "%f %f" and reads 0 and 0 instead of 0 and 12.  This affects data input.  If
  5709.  the data file contains x coordinates that are zero but are specified like
  5710.  '00', '000', etc, then you will read the wrong y values.  Check any data
  5711.  files or upgrade the SunOS.  It appears to have been fixed in SunOS 4.1.1.
  5712.  
  5713.  Suns appear to overflow when calculating exp(-x) for large x, so `gnuplot`
  5714.  gets an undefined result.  One work-around is to make a user-defined function
  5715.  like e(x) = x<-500 ? 0 : exp(x).  This affects plots of Gaussians (exp(-x*x))
  5716.  in particular, since x*x grows quite rapidly.
  5717.  
  5718.  Microsoft C 5.1 has a nasty bug associated with the %g format for 'printf'.
  5719.  When any of the formats "%.2g", "%.1g", "%.0g", "%.g" are used, 'printf' will
  5720.  incorrectly print numbers in the range 1e-4 to 1e-1.  Numbers that should be
  5721.  printed in the %e format are incorrectly printed in the %f format, with the
  5722.  wrong number of zeros after the decimal point.  To work around this problem,
  5723.  use the %e or %f formats explicitly.
  5724.  
  5725.  `gnuplot`, when compiled with Microsoft C, did not work correctly on two VGA
  5726.  displays that were tested.  The CGA, EGA and VGA drivers should probably be
  5727.  rewritten to use the Microsoft C graphics library.  `gnuplot` compiled with
  5728.  Borland C++ uses the Turbo C graphics drivers and does work correctly with
  5729.  VGA displays.
  5730.  
  5731.  VAX/VMS 4.7 C compiler release 2.4 also has a poorly implemented %g format
  5732.  for 'printf'.  The numbers are printed numerically correct, but may not be in
  5733.  the requested format.  The K&R second edition says that for the %g format, %e
  5734.  is used if the exponent is less than -4 or greater than or equal to the
  5735.  precision.  The VAX uses %e format if the exponent is less than -1.  The VAX
  5736.  appears to take no notice of the precision when deciding whether to use %e or
  5737.  %f for numbers less than 1.  To work around this problem, use the %e or %f
  5738.  formats explicitly.  From the VAX C 2.4 release notes: e,E,f,F,g,G  Result
  5739.  will always contain a decimal  point.  For g and G, trailing zeros will not
  5740.  be removed from the result.
  5741.  
  5742.  VAX/VMS 5.2 C compiler release 3.0 has a slightly better implemented %g
  5743.  format than release 2.4, but not much.  Trailing decimal points are now
  5744.  removed, but trailing zeros are still not removed from %g numbers in
  5745.  exponential format.
  5746.  
  5747.  The two preceding problems are actually in the libraries rather than in the
  5748.  compilers.  Thus the problems will occur whether `gnuplot` is built using
  5749.  either the DEC compiler or some other one (e.g. the latest gcc).
  5750.  
  5751.  ULTRIX X11R3 has a bug that causes the X11 driver to display "every other"
  5752.  graph.  The bug seems to be fixed in DEC's release of X11R4 so newer releases
  5753.  of ULTRIX don't seem to have the problem.  Solutions for older sites include
  5754.  upgrading the X11 libraries (from DEC or direct from MIT) or defining
  5755.  ULTRIX_KLUDGE when compiling the x11.trm file.  Note that the kludge is not
  5756.  an ideal fix, however.
  5757.  
  5758.  The constant HUGE was incorrectly defined in the NeXT OS 2.0 operating
  5759.  system.  HUGE should be set to 1e38 in plot.h. This error has been corrected
  5760.  in the 2.1 version of NeXT OS.
  5761.  
  5762.  Some older models of HP plotters do not have a page eject command 'PG'.  The
  5763.  current HPGL driver uses this command in HPGL_reset.  This may need to be
  5764.  removed for these plotters.  The current PCL5 driver uses HPGL/2 for text as
  5765.  well as graphics.  This should be modified to use scalable PCL fonts.
  5766.  
  5767.  On the Atari version, it is not possible to send output directly to the
  5768.  printer (using `/dev/lp` as output file), since CRs are added to LFs in
  5769.  binary output.  As a work-around, write the output to a file and copy it to
  5770.  the printer afterwards using a shell command.
  5771.  
  5772.  On AIX 4, the literal 'NaNq' in a datafile causes the special internal value
  5773.  'not-a-number' to be stored, rather than setting an internal 'undefined'
  5774.  flag.  A workaround is to use `set missing 'NaNq'`.
  5775.  
  5776.  There may be an up-to-date list of bugs since the release on the WWW page:
  5777.        http://www.cs.dartmouth.edu/gnuplot
  5778.  
  5779.  Please report any bugs to bug-gnuplot@dartmouth.edu.
  5780.